Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AIG-public
Cobalt
Commits
60c201af
Commit
60c201af
authored
Aug 18, 2017
by
Paul Rich
Browse files
Fixing logging error and a bad exception raise
parent
fe04ae24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/Components/DBWriter/cdbwriter.py
View file @
60c201af
...
...
@@ -162,7 +162,7 @@ class MessageQueue(Component):
logging
.
debug
(
traceback
.
format_exc
())
self
.
msg_queue
.
pop
(
0
)
except
:
logger
.
error
(
"Error updating databse. Unable to add message.
"
)
logger
.
error
(
"Error updating databse. Unable to add message.
%s"
,
msg
)
logging
.
debug
(
traceback
.
format_exc
())
self
.
connected
=
False
#if we were clearing an overflow, here we go again.
...
...
@@ -872,7 +872,7 @@ class no_pk_dao(db2util.dao):
invalidFields
=
record
.
invalidFields
()
if
invalidFields
:
raise
adapterError
(
"Validation error prior to insert.
\n\n
Table: %s
\n\n
Field(s): %s
\n
"
%
(
record
.
fqtn
,
str
(
invalidFields
)))
raise
db2util
.
adapterError
(
"Validation error prior to insert.
\n\n
Table: %s
\n\n
Field(s): %s
\n
"
%
(
record
.
fqtn
,
str
(
invalidFields
)))
insertSQL
=
"insert into %s (%s) values (%s)"
%
(
self
.
table
.
fqName
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment