actions: Print a traceback on failed actions in debug mode.
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 10 Jun 2010 13:35:49 +0000 (15:35 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Thu, 10 Jun 2010 13:35:49 +0000 (15:35 +0200)
src/lib/backupninja/action.py

index 7c80148d9c24f15f86e1c49892449e81c62d7e2b..de36c4ba713fb7a5198d5abdc9d0792fdbfe6427 100644 (file)
@@ -69,3 +69,5 @@ def run_action(action, opts, global_config):
         handler.finish(test=opts.test)
     except Exception, e:
         log.error('Running action "%s" failed: %s', action, e)
+        import traceback
+        log.debug(traceback.format_exc())