diff --git a/zerver/management/commands/sync_ldap_user_data.py b/zerver/management/commands/sync_ldap_user_data.py index 7669194579..03b9ce114a 100644 --- a/zerver/management/commands/sync_ldap_user_data.py +++ b/zerver/management/commands/sync_ldap_user_data.py @@ -55,7 +55,7 @@ def sync_ldap_user_data( "Use the --force option if the mass deactivation is intended." ) except Exception: - logger.error("LDAP sync failed", exc_info=True) + logger.exception("LDAP sync failed") raise logger.info("Finished update.")