From: Michael Tremer Date: Sun, 22 Jun 2014 11:27:51 +0000 (+0000) Subject: Log an entire stack trace for unhandled exceptions. X-Git-Tag: 001~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=708da5a48e1d8dec954d3c03682315b9f702dacb;p=ddns.git Log an entire stack trace for unhandled exceptions. --- diff --git a/src/ddns/__init__.py b/src/ddns/__init__.py index 09511ce..6828119 100644 --- a/src/ddns/__init__.py +++ b/src/ddns/__init__.py @@ -197,8 +197,7 @@ class DDNSCore(object): except Exception, e: logger.error(_("Dynamic DNS update for %(hostname)s (%(provider)s) throwed an unhandled exception:") % \ - { "hostname" : entry.hostname, "provider" : entry.name }) - logger.error(" %s" % e) + { "hostname" : entry.hostname, "provider" : entry.name }, exc_info=True) else: logger.info(_("Dynamic DNS update for %(hostname)s (%(provider)s) successful") % \