summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-07-30 14:23:36 +0200
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2014-07-30 14:23:36 +0200
commitbae16970b5d9d5379214658397834499fb3755d8 (patch)
tree355029c9972c7c7215824358730b92523fe8cfd6
parent082464b7e59451a2c993a9851de117c979cc24af (diff)
downloadpykolab-bae16970b5d9d5379214658397834499fb3755d8.tar.gz
Add the traceback to the error log as well
-rw-r--r--pykolab/auth/ldap/__init__.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index d1a0b2d..7249009 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -2704,9 +2704,13 @@ class LDAP(pykolab.base.Base):
except Exception, errmsg:
log.error(_("An error occured using %s: %r") % (supported_control, errmsg))
+ import traceback
+
if conf.debuglevel > 8:
- import traceback
traceback.print_exc()
+
+ log.error(_("%s") % (traceback.format_exc()))
+
continue
return _results