From 986676ade9ffe4738734566c50eeed4b0ce7dd5f Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Thu, 16 Nov 2017 12:39:41 +0100 Subject: 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. --- rumba/utils.py | 1 + 1 file changed, 1 insertion(+) 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. -- cgit v1.2.3