mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Log unexpected exceptions causing recorder shutdown (#99445)
This commit is contained in:
parent
8dcc96c083
commit
9fec0be173
@ -692,6 +692,10 @@ class Recorder(threading.Thread):
|
||||
"""Run the recorder thread."""
|
||||
try:
|
||||
self._run()
|
||||
except Exception: # pylint: disable=broad-exception-caught
|
||||
_LOGGER.exception(
|
||||
"Recorder._run threw unexpected exception, recorder shutting down"
|
||||
)
|
||||
finally:
|
||||
# Ensure shutdown happens cleanly if
|
||||
# anything goes wrong in the run loop
|
||||
|
Loading…
x
Reference in New Issue
Block a user