From 0771546dadce7933de74139bdfd8e1efcd6aa65a Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 1 Nov 2020 18:25:38 +0100 Subject: [PATCH] Log exception on user import --- cps/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/web.py b/cps/web.py index 34cfe90b..3b337e7e 100644 --- a/cps/web.py +++ b/cps/web.py @@ -314,7 +314,7 @@ def import_ldap_users(): try: new_users = services.ldap.get_group_members(config.config_ldap_group_name) except (services.ldap.LDAPException, TypeError, AttributeError, KeyError) as e: - log.debug(e) + log.exception(e) showtext['text'] = _(u'Error: %(ldaperror)s', ldaperror=e) return json.dumps(showtext) if not new_users: