Add full command details to exception Debug log (#41070)
This commit is contained in:
parent
08cf400473
commit
bebf5368c1
1 changed files with 7 additions and 1 deletions
|
@ -57,7 +57,13 @@ def decorate_command(channel, command):
|
|||
return result
|
||||
|
||||
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 wrapper
|
||||
|
|
Loading…
Add table
Reference in a new issue