Skip to content

Commit b248f28

Browse files
committed
rephrase a bit
1 parent 821b941 commit b248f28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

matter_server/server/client_handler.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ async def _run_handler(
198198
if msg.args and (node_id := msg.args.get("node_id")):
199199
message_str += f" (node {node_id})"
200200
self._logger.error(
201-
"Error while handling command: %s: %s",
202-
msg.command,
201+
"Error while handling: %s: %s",
202+
message_str,
203203
str(err) or err.__class__.__name__,
204204
# only print the full stacktrace if debug logging is enabled
205205
exc_info=err if self._logger.isEnabledFor(logging.DEBUG) else None,
@@ -209,7 +209,7 @@ async def _run_handler(
209209
)
210210
except Exception as err: # pylint: disable=broad-except
211211
self._logger.exception(
212-
"Unhandled exception while handling command: %s",
212+
"Unhandled exception while handling: %s",
213213
msg.command,
214214
)
215215
error_code = getattr(err, "error_code", 0)

0 commit comments

Comments
 (0)