mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-02 17:25:22 +03:00
Add return type
This commit is contained in:
parent
8ed6f2b8c3
commit
f3a1c03863
@ -58,7 +58,7 @@ class FrigateLogFormatter(logging.Formatter):
|
||||
logging.CRITICAL: bold_red + message_format + reset,
|
||||
}
|
||||
|
||||
def format(self, record):
|
||||
def format(self, record) -> str:
|
||||
log_fmt = self.FORMATS.get(record.levelno)
|
||||
formatter = logging.Formatter(log_fmt, self.time_format)
|
||||
return formatter.format(record)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user