Use new format for logging exceptions - host/info.py (#3204)
Co-authored-by: Ludeeus <ludeeus@ludeeus.dev>
This commit is contained in:
parent
a6d1078fe3
commit
c07c7c5146
|
@ -120,8 +120,7 @@ class InfoCenter(CoreSysAttributes):
|
|||
try:
|
||||
stdout, _ = await proc.communicate()
|
||||
except OSError as err:
|
||||
_LOGGER.error("Can't read kernel log: %s", err)
|
||||
raise HostError() from err
|
||||
raise HostError(f"Can't read kernel log: {err}", _LOGGER.error) from err
|
||||
|
||||
return stdout
|
||||
|
||||
|
|
Loading…
Reference in New Issue