custom_logger: fix type errror in format_time
This commit is contained in:
parent
80aa7f06fb
commit
e5899c8e10
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user