From acef820c54017613aa79c1068b5c26882354bb98 Mon Sep 17 00:00:00 2001 From: "mathieu.brunot" Date: Wed, 8 Jan 2020 23:40:14 +0100 Subject: [PATCH] :bug: Fix logger for LDAP group filter Signed-off-by: mathieu.brunot --- powerdnsadmin/models/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerdnsadmin/models/user.py b/powerdnsadmin/models/user.py index f061b7e..a0ef67d 100644 --- a/powerdnsadmin/models/user.py +++ b/powerdnsadmin/models/user.py @@ -272,7 +272,7 @@ class User(db.Model): try: if LDAP_TYPE == 'ldap': groupSearchFilter = "(&({0}={1}){2})".format(LDAP_FILTER_GROUPNAME, ldap_username, LDAP_FILTER_GROUP) - logging.info('groupSearchFilter is {0}'.format(groupSearchFilter)) + current_app.logger.debug('Ldap groupSearchFilter {0}'.format(groupSearchFilter)) if (self.ldap_search(groupSearchFilter, LDAP_ADMIN_GROUP)): role_name = 'Administrator'