From fb68bf85ae09f97b0f3158839eb88606c302d465 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Sat, 6 Feb 2021 13:40:15 +0100 Subject: [PATCH] Don't defer formatting of log messages (#44873) * Make fast logging optional * Remove fast logging support --- homeassistant/util/logging.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/homeassistant/util/logging.py b/homeassistant/util/logging.py index 9b04c2ab007..423685fe9d4 100644 --- a/homeassistant/util/logging.py +++ b/homeassistant/util/logging.py @@ -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.