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 7c80148..de36c4b 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())