From 96bbe95a8ba1b62d82932109dc53aad7b7912bfd Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 3 Apr 2012 15:59:05 +0200 Subject: [PATCH] Log a backtrace of exceptions when in debugging mode. --- tools/pakfire-multicall.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/pakfire-multicall.py b/tools/pakfire-multicall.py index e2d8e3979..9e95dbe88 100755 --- a/tools/pakfire-multicall.py +++ b/tools/pakfire-multicall.py @@ -74,6 +74,9 @@ except Error, e: log.error(" %s: %s" % (e.__class__.__name__, e.message)) log.error("") + # Log the traceback when in debugging mode. + log.debug("", exc_info=True) + log.error(_("Further description:")) msg = "%s" % e for line in msg.splitlines(): -- 2.39.5