Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Nov 16, 2023
1 parent 5a380d5 commit 937bbca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions xnat_ingest/cli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 937bbca

Please sign in to comment.