summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael G. Martins <rafael.martins@collabora.com>2012-07-13 21:18:28 (GMT)
committerRafael G. Martins <rafael.martins@collabora.com>2012-07-13 21:18:28 (GMT)
commitcf01405a6c14f67df17915ddcf1b931b94774ae4 (patch)
tree45d284d9f054d5a820e5f4ef9bf47902c447edc9
parent9fae133705f389e8a8835d2abdd9e0ec218f5b23 (diff)
downloadqa-bughandler-cf01405a6c14f67df17915ddcf1b931b94774ae4.tar.gz
qa-bughandler-cf01405a6c14f67df17915ddcf1b931b94774ae4.tar.xz
added traceback to logs, for critical errors
-rwxr-xr-xqa-bughandler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qa-bughandler.py b/qa-bughandler.py
index 746aef0..f3090a2 100755
--- a/qa-bughandler.py
+++ b/qa-bughandler.py
@@ -27,8 +27,9 @@
from argparse import ArgumentParser
from ConfigParser import ConfigParser
from datetime import datetime
-from xmlrpclib import ServerProxy
+from traceback import format_exc
from urlparse import urlparse, urlunparse
+from xmlrpclib import ServerProxy
import logging
import os
import sys
@@ -297,6 +298,7 @@ def main():
except Exception, e:
settings.logger.critical('%s: %s', e.__class__.__name__, e)
+ settings.logger.critical(format_exc())
return -1
else:
return 0