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 b3d020a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0
`Unreleased`_
=============

Fixed
-----
* Made BlueZ callback logging lazy to improve performance.


`0.15.0`_ (2022-07-29)
======================

Expand Down
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 b3d020a

Please sign in to comment.