Add full command details to exception Debug log (#41070)

This commit is contained in:
Samantha authored and GitHub committed 2020-10-02 12:18:55 -04:00
1 parent 08cf400473
commit bebf5368c1
1 file changed
+7 -1
@@ -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