mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Don't defer formatting of log messages (#44873)
* Make fast logging optional * Remove fast logging support
This commit is contained in:
parent
94ecb792ec
commit
fb68bf85ae
@ -30,13 +30,6 @@ class HideSensitiveDataFilter(logging.Filter):
|
|||||||
class HomeAssistantQueueHandler(logging.handlers.QueueHandler):
|
class HomeAssistantQueueHandler(logging.handlers.QueueHandler):
|
||||||
"""Process the log in another thread."""
|
"""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:
|
def handle(self, record: logging.LogRecord) -> Any:
|
||||||
"""
|
"""
|
||||||
Conditionally emit the specified logging record.
|
Conditionally emit the specified logging record.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user