From 82660de59155cc53934f4f50c536f73c0a2a4cd1 Mon Sep 17 00:00:00 2001 From: Mateusz Mandera Date: Fri, 17 Jul 2020 15:39:59 +0200 Subject: [PATCH] ldap: Use zulip.ldap logger in ZulipLDAPUserPopulator. --- zproject/backends.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zproject/backends.py b/zproject/backends.py index 4d201737fe..f37ad001d2 100644 --- a/zproject/backends.py +++ b/zproject/backends.py @@ -797,14 +797,14 @@ class ZulipLDAPUserPopulator(ZulipLDAPAuthBackendBase): user_disabled_in_ldap = self.is_account_control_disabled_user(ldap_user) if user_disabled_in_ldap: if user.is_active: - logging.info("Deactivating user %s because they are disabled in LDAP.", - user.delivery_email) + ldap_logger.info("Deactivating user %s because they are disabled in LDAP.", + user.delivery_email) do_deactivate_user(user) # Do an early return to avoid trying to sync additional data. return (user, built) elif not user.is_active: - logging.info("Reactivating user %s because they are not disabled in LDAP.", - user.delivery_email) + ldap_logger.info("Reactivating user %s because they are not disabled in LDAP.", + user.delivery_email) do_reactivate_user(user) self.sync_avatar_from_ldap(user, ldap_user)