summaryrefslogtreecommitdiffstats
path: root/kolabd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-26 15:03:53 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-12-26 15:03:53 +0100
commit0d634bb139dcaf041ebe8192b2996e6725bd5c1c (patch)
tree708c051dfcf58758f0bf8db43bbbc0d02eec7a1b /kolabd
parentf184ecd427b7ae97acf510d7a6876f9afa28b906 (diff)
downloadpykolab-0d634bb139dcaf041ebe8192b2996e6725bd5c1c.tar.gz
Display a traceback with the process fails
Diffstat (limited to 'kolabd')
-rw-r--r--kolabd/process.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/kolabd/process.py b/kolabd/process.py
index ddaac63..c936fdc 100644
--- a/kolabd/process.py
+++ b/kolabd/process.py
@@ -41,6 +41,8 @@ class KolabdProcess(multiprocessing.Process):
auth = Auth(domain)
auth.connect(domain)
auth.synchronize()
- except:
- log.error(_("Error in process %r, terminating") % (self.name))
- return \ No newline at end of file
+ except Exception, errmsg:
+ log.error(_("Error in process %r, terminating:\n\t%r") % (self.name, errmsg))
+ import traceback
+ traceback.print_exc()
+ return