mirror of
https://github.com/google/bumble.git
synced 2026-06-03 07:57:03 +00:00
use a formatter object, not a string
This commit is contained in:
+1
-1
@@ -902,7 +902,7 @@ class LogHandler(logging.Handler):
|
||||
def __init__(self, app):
|
||||
super().__init__()
|
||||
self.app = app
|
||||
self.setFormatter("[%(asctime)s][%(pathname)s:%(lineno)d][%(levelname)s] %(message)s")
|
||||
self.setFormatter(logging.Formatter('[%(asctime)s][%(levelname)s] %(message)s'))
|
||||
|
||||
def emit(self, record):
|
||||
message = self.format(record)
|
||||
|
||||
Reference in New Issue
Block a user