aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2017-11-16 12:39:41 +0100
committerMarco Capitani <m.capitani@nextworks.it>2017-11-16 12:39:41 +0100
commit986676ade9ffe4738734566c50eeed4b0ce7dd5f (patch)
tree9fd0242d2c763508b999b3bdad546dd7ffc0a32f
parent58989245792c2522f2373cc10a9d927e71195dff (diff)
downloadrumba-986676ade9ffe4738734566c50eeed4b0ce7dd5f.tar.gz
rumba-986676ade9ffe4738734566c50eeed4b0ce7dd5f.zip
utils: add exception logging for CM
The stacktrace of the exception (if any) encountered in the execution will be printed at debug level, for debug purposes.
-rw-r--r--rumba/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rumba/utils.py b/rumba/utils.py
index 97e3646..0e8867d 100644
--- a/rumba/utils.py
+++ b/rumba/utils.py
@@ -57,5 +57,6 @@ class ExperimentManager(object):
if exc_val is not None:
logger.error('Something went wrong. Got %s: %s',
type(exc_val).__name__, str(exc_val))
+ logger.debug('Exception details:', exc_info=exc_val)
time.sleep(0.1) # Give the queue logger enough time to flush.
return True # Suppress the exception we logged: no traceback.