Remove check for info being enabled

This commit is contained in:
Christopher Broderick 2023-10-24 14:24:10 +01:00
parent 2c9e251113
commit bc7e189a5c

View File

@ -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: