mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
soft_deactivation: Fix incorrect logging function.
Using logging.info() rather than logger.info() meant that our zulip.soft_deactivation logger configuration (which, in particular, included not logging to the console) was not active on this log line, resulting in the `manage.py soft_deactivate_users` cron job sending emails every time it ran. Fixes #13750.
This commit is contained in:
@@ -301,7 +301,7 @@ def do_catch_up_soft_deactivated_users(users: List[UserProfile]) -> List[UserPro
|
||||
if user_profile.long_term_idle:
|
||||
add_missing_messages(user_profile)
|
||||
users_caught_up.append(user_profile)
|
||||
logging.info("Caught up %d soft-deactivated users" % (len(users_caught_up),))
|
||||
logger.info("Caught up %d soft-deactivated users" % (len(users_caught_up),))
|
||||
return users_caught_up
|
||||
|
||||
def get_soft_deactivated_users_for_catch_up(filter_kwargs: Any) -> List[UserProfile]:
|
||||
|
Reference in New Issue
Block a user