From e5899c8e1016901e32f7c75fc9a790e73c7f2000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 27 Sep 2023 11:28:38 +0200 Subject: [PATCH] custom_logger: fix type errror in format_time --- pkgs/clan-cli/clan_cli/custom_logger.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/custom_logger.py b/pkgs/clan-cli/clan_cli/custom_logger.py index b16fc8904..66d4ac1e8 100644 --- a/pkgs/clan-cli/clan_cli/custom_logger.py +++ b/pkgs/clan-cli/clan_cli/custom_logger.py @@ -26,8 +26,7 @@ class CustomFormatter(logging.Formatter): def format_time(self, record: Any, datefmt: Any = None) -> str: now = datetime.datetime.now() - now = now.strftime("%H:%M:%S") - return now + return now.strftime("%H:%M:%S") def format(self, record: Any) -> str: log_fmt = self.FORMATS.get(record.levelno)