mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Add full command details to exception Debug log (#41070)
This commit is contained in:
parent
08cf400473
commit
bebf5368c1
@ -57,7 +57,13 @@ def decorate_command(channel, command):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
except (zigpy.exceptions.ZigbeeException, asyncio.TimeoutError) as ex:
|
except (zigpy.exceptions.ZigbeeException, asyncio.TimeoutError) as ex:
|
||||||
channel.debug("command failed: %s exception: %s", command.__name__, str(ex))
|
channel.debug(
|
||||||
|
"command failed: '%s' args: '%s' kwargs '%s' exception: '%s'",
|
||||||
|
command.__name__,
|
||||||
|
args,
|
||||||
|
kwds,
|
||||||
|
str(ex),
|
||||||
|
)
|
||||||
return ex
|
return ex
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
Loading…
x
Reference in New Issue
Block a user