From: Michael Tremer Date: Tue, 3 Apr 2012 13:59:05 +0000 (+0200) Subject: Log a backtrace of exceptions when in debugging mode. X-Git-Tag: 0.9.22~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96bbe95a8ba1b62d82932109dc53aad7b7912bfd;p=pakfire.git Log a backtrace of exceptions when in debugging mode. --- 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():