Remove prepare override in HomeAssistantQueueHandler (#115064)

pull/115026/head
J. Nick Koston 2024-04-06 13:53:36 -10:00 committed by GitHub
parent 8324fd5d1d
commit 164d29d4d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 9 deletions

View File

@ -23,15 +23,6 @@ class HomeAssistantQueueHandler(logging.handlers.QueueHandler):
listener: logging.handlers.QueueListener | None = None 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: def handle(self, record: logging.LogRecord) -> Any:
"""Conditionally emit the specified logging record. """Conditionally emit the specified logging record.