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

This commit is contained in:
Samantha 2020-10-02 17:18:55 +01:00 committed by Paulus Schoutsen
parent 751f041009
commit f114419359

View File

@ -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