custom_logger: fix type errror in format_time
This commit is contained in:
@@ -26,8 +26,7 @@ class CustomFormatter(logging.Formatter):
|
|||||||
|
|
||||||
def format_time(self, record: Any, datefmt: Any = None) -> str:
|
def format_time(self, record: Any, datefmt: Any = None) -> str:
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
now = now.strftime("%H:%M:%S")
|
return now.strftime("%H:%M:%S")
|
||||||
return now
|
|
||||||
|
|
||||||
def format(self, record: Any) -> str:
|
def format(self, record: Any) -> str:
|
||||||
log_fmt = self.FORMATS.get(record.levelno)
|
log_fmt = self.FORMATS.get(record.levelno)
|
||||||
|
|||||||
Reference in New Issue
Block a user