summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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