From 937bbcaec79cb2ce44b615447bdf996d196cff5e Mon Sep 17 00:00:00 2001 From: Tom Close Date: Thu, 16 Nov 2023 20:32:01 +1100 Subject: [PATCH] formatted --- xnat_ingest/cli/utils.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/xnat_ingest/cli/utils.py b/xnat_ingest/cli/utils.py index 54de514..4843e8b 100644 --- a/xnat_ingest/cli/utils.py +++ b/xnat_ingest/cli/utils.py @@ -78,8 +78,9 @@ def __str__(self): return f"'{self.keyword}' field ({','.join(self.tag)})" -def set_logger_handling(log_level: str, log_emails: LogEmail, log_file: Path, mail_server: MailServer): - +def set_logger_handling( + log_level: str, log_emails: LogEmail, log_file: Path, mail_server: MailServer +): # Configure the email logger if log_emails: if not mail_server: @@ -112,7 +113,9 @@ def set_logger_handling(log_level: str, log_emails: LogEmail, log_file: Path, ma console_hdle = logging.StreamHandler(sys.stdout) console_hdle.setLevel(getattr(logging, log_level.upper())) - console_hdle.setFormatter(logging.Formatter('%(asctime)s - %(levelname)s - %(message)s')) + console_hdle.setFormatter( + logging.Formatter("%(asctime)s - %(levelname)s - %(message)s") + ) logger.addHandler(console_hdle)