From 1f0203fd6f3b7833a619f4206c118056c4b469d9 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Thu, 10 Jun 2010 15:35:49 +0200 Subject: [PATCH] actions: Print a traceback on failed actions in debug mode. --- src/lib/backupninja/action.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/backupninja/action.py b/src/lib/backupninja/action.py index 7c80148..de36c4b 100644 --- a/src/lib/backupninja/action.py +++ b/src/lib/backupninja/action.py @@ -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()) -- 2.30.2