Don't defer formatting of log messages (#44873)

* Make fast logging optional

* Remove fast logging support
This commit is contained in:
Erik Montnemery 2021-02-06 13:40:15 +01:00 committed by GitHub
parent 94ecb792ec
commit fb68bf85ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,13 +30,6 @@ class HideSensitiveDataFilter(logging.Filter):
class HomeAssistantQueueHandler(logging.handlers.QueueHandler):
"""Process the log in another thread."""
def emit(self, record: logging.LogRecord) -> None:
"""Emit a log record."""
try:
self.enqueue(record)
except Exception: # pylint: disable=broad-except
self.handleError(record)
def handle(self, record: logging.LogRecord) -> Any:
"""
Conditionally emit the specified logging record.