mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-27 11:06:32 +00:00
Upgrade json config handler logging to critical (#2344)
This commit is contained in:
parent
792bc610a3
commit
1d43236211
@ -67,7 +67,7 @@ class JsonConfig:
|
|||||||
try:
|
try:
|
||||||
self._data = self._schema(self._data)
|
self._data = self._schema(self._data)
|
||||||
except vol.Invalid as ex:
|
except vol.Invalid as ex:
|
||||||
_LOGGER.error(
|
_LOGGER.critical(
|
||||||
"Can't parse %s: %s", self._file, humanize_error(self._data, ex)
|
"Can't parse %s: %s", self._file, humanize_error(self._data, ex)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ class JsonConfig:
|
|||||||
try:
|
try:
|
||||||
self._data = self._schema(self._data)
|
self._data = self._schema(self._data)
|
||||||
except vol.Invalid as ex:
|
except vol.Invalid as ex:
|
||||||
_LOGGER.error("Can't parse data: %s", humanize_error(self._data, ex))
|
_LOGGER.critical("Can't parse data: %s", humanize_error(self._data, ex))
|
||||||
|
|
||||||
# Load last valid data
|
# Load last valid data
|
||||||
_LOGGER.warning("Resetting %s to last version", self._file)
|
_LOGGER.warning("Resetting %s to last version", self._file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user