Skip to content

Commit

Permalink
Make callback logging lazy
Browse files Browse the repository at this point in the history
Fixes logging-format-interpolation (W1202)
  • Loading branch information
bdraco committed Aug 1, 2022
1 parent 92b20d9 commit dd6afe5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bleak/backends/bluezdbus/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,11 @@ def _parse_msg(self, message: Message):
return

logger.debug(
f"received D-Bus signal: {message.interface}.{message.member} ({message.path}): {message.body}"
"received D-Bus signal: %s.%s (%s): %s",
message.interface,
message.member,
message.path,
message.body,
)

# type hints
Expand Down

0 comments on commit dd6afe5

Please sign in to comment.