From a3e89ebff26215d05a07bff661a70d648ccc1207 Mon Sep 17 00:00:00 2001 From: mdeweerd Date: Tue, 31 Oct 2023 19:15:04 +0100 Subject: [PATCH] Show parameters of call on exception --- custom_components/zha_toolkit/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom_components/zha_toolkit/__init__.py b/custom_components/zha_toolkit/__init__.py index 2e8a30b..ecaf9e1 100644 --- a/custom_components/zha_toolkit/__init__.py +++ b/custom_components/zha_toolkit/__init__.py @@ -813,6 +813,11 @@ async def toolkit_service(service): u.get_hass(zha_gw).bus.fire(params[p.EVT_DONE], event_data) if handler_exception is not None: + LOGGER.error( + "Exception '%s' for service call with data '%r'", + params[p.EVT_DONE], + event_data, + ) raise handler_exception if not event_data["success"] and params[p.FAIL_EXCEPTION]: