Set parse issues as critical (#1989)

This commit is contained in:
Joakim Sørensen 2020-08-29 10:56:45 +02:00 committed by GitHub
parent 8193f43634
commit f937876a1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,8 +153,7 @@ class DBus:
try: try:
return json.loads(json_raw) return json.loads(json_raw)
except json.JSONDecodeError as err: except json.JSONDecodeError as err:
_LOGGER.error("Can't parse '%s': %s", json_raw, err) _LOGGER.critical("Can't parse '%s': '%s' - %s", json_raw, raw, err)
_LOGGER.debug("GVariant data: '%s'", raw)
raise DBusParseError() from err raise DBusParseError() from err
@staticmethod @staticmethod