Properly log verifier exceptions.
If an exception is thrown in the verifier child process for a specific exchange, log it properly. Was simply printing to stdout, which goes nowhere for daemon processes. Change-Id: I528ad08e70d7bdf03e9a8e1d8abe45d09f2eb476
This commit is contained in:
parent
03cd412254
commit
5ac182ac4e
@ -211,10 +211,13 @@ class Verifier(object):
|
|||||||
try:
|
try:
|
||||||
self._run(callback=callback)
|
self._run(callback=callback)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print e
|
msg = "ERROR during Verification %s: %s" % (exchange_name,
|
||||||
raise e
|
e)
|
||||||
|
logger.exception(msg)
|
||||||
|
return True
|
||||||
else:
|
else:
|
||||||
self._run()
|
self._run()
|
||||||
|
return False
|
||||||
|
|
||||||
def verify_for_range(self, ending_max, callback=None):
|
def verify_for_range(self, ending_max, callback=None):
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user