Commit 991561e0 authored by Paul Rich's avatar Paul Rich
Browse files

Merge branch '100-cdbwriter-adapterError' into 'develop'

Fixing logging error and a bad exception raise

Closes #100

See merge request !58
parents fe04ae24 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\nTable: %s\n\nField(s): %s\n" % (record.fqtn, str(invalidFields)))
raise db2util.adapterError("Validation error prior to insert.\n\nTable: %s\n\nField(s): %s\n" % (record.fqtn, str(invalidFields)))
insertSQL = "insert into %s (%s) values (%s)" %(
self.table.fqName,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment