Add error prints for recorder fatal errors (#134517)

This commit is contained in:
Erik Montnemery 2025-01-03 10:01:35 +01:00 committed by GitHub
parent 23ed62c1bc
commit c901352bef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -712,12 +712,14 @@ class Recorder(threading.Thread):
setup_result = self._setup_recorder()
if not setup_result:
_LOGGER.error("Recorder setup failed, recorder shutting down")
# Give up if we could not connect
return
schema_status = migration.validate_db_schema(self.hass, self, self.get_session)
if schema_status is None:
# Give up if we could not validate the schema
_LOGGER.error("Failed to validate schema, recorder shutting down")
return
if schema_status.current_version > SCHEMA_VERSION:
_LOGGER.error(