From bebf5368c11fba3167c0655c25bd9a0a85beaf58 Mon Sep 17 00:00:00 2001 From: Samantha <samantha.uk.github@gmail.com> Date: Fri, 2 Oct 2020 17:18:55 +0100 Subject: [PATCH] Add full command details to exception Debug log (#41070) --- homeassistant/components/zha/core/channels/base.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/zha/core/channels/base.py b/homeassistant/components/zha/core/channels/base.py index ebc2cd5cd0f..0570070785f 100644 --- a/homeassistant/components/zha/core/channels/base.py +++ b/homeassistant/components/zha/core/channels/base.py @@ -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 -- GitLab