From 164d29d4d9703a090db83e295dcc6a6b22868f7b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 6 Apr 2024 13:53:36 -1000 Subject: [PATCH] Remove prepare override in HomeAssistantQueueHandler (#115064) --- homeassistant/util/logging.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/homeassistant/util/logging.py b/homeassistant/util/logging.py index 09ece063dd0..8709186face 100644 --- a/homeassistant/util/logging.py +++ b/homeassistant/util/logging.py @@ -23,15 +23,6 @@ class HomeAssistantQueueHandler(logging.handlers.QueueHandler): listener: logging.handlers.QueueListener | None = None - def prepare(self, record: logging.LogRecord) -> logging.LogRecord: - """Prepare a record for queuing. - - This is added as a workaround for https://bugs.python.org/issue46755 - """ - record = super().prepare(record) - record.stack_info = None - return record - def handle(self, record: logging.LogRecord) -> Any: """Conditionally emit the specified logging record.