mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Add error prints for recorder fatal errors (#134517)
This commit is contained in:
parent
23ed62c1bc
commit
c901352bef
@ -712,12 +712,14 @@ class Recorder(threading.Thread):
|
|||||||
setup_result = self._setup_recorder()
|
setup_result = self._setup_recorder()
|
||||||
|
|
||||||
if not setup_result:
|
if not setup_result:
|
||||||
|
_LOGGER.error("Recorder setup failed, recorder shutting down")
|
||||||
# Give up if we could not connect
|
# Give up if we could not connect
|
||||||
return
|
return
|
||||||
|
|
||||||
schema_status = migration.validate_db_schema(self.hass, self, self.get_session)
|
schema_status = migration.validate_db_schema(self.hass, self, self.get_session)
|
||||||
if schema_status is None:
|
if schema_status is None:
|
||||||
# Give up if we could not validate the schema
|
# Give up if we could not validate the schema
|
||||||
|
_LOGGER.error("Failed to validate schema, recorder shutting down")
|
||||||
return
|
return
|
||||||
if schema_status.current_version > SCHEMA_VERSION:
|
if schema_status.current_version > SCHEMA_VERSION:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user