From bc7e189a5ccdb7a4e81c6e3fc40f9020aba7c816 Mon Sep 17 00:00:00 2001 From: Christopher Broderick Date: Tue, 24 Oct 2023 14:24:10 +0100 Subject: [PATCH] Remove check for info being enabled --- helpdesk/email.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helpdesk/email.py b/helpdesk/email.py index 25d965b0..212ee31c 100644 --- a/helpdesk/email.py +++ b/helpdesk/email.py @@ -99,8 +99,7 @@ def process_email(quiet: bool = False, debug_to_stdout: bool = False): q.email_box_last_check = timezone.now() q.save() log_msg: str = f"Queue successfully processed: {q.slug}" - if logger.isEnabledFor(logger.INFO): - logger.info(log_msg) + logger.info(log_msg) if debug_to_stdout: print(log_msg) except Exception: