You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BlueZ version (bluetoothctl -v) in case of Linux: 5.50
Description
The bleak bluezdbus backend client emits a logging message at both the logging.DEBUG and logging.INFO level every time a characteristic notification is received. This behavior is different than the corebluetooth and dotnet backends which do not log on every notification. This is causing my application to emit several hundred logging messages per second at the logging.INFO level, rendering the logging extremely verbose and not very useful. I am currently changing the logging level of bleak.backends.bluezdbus.client to logging.WARNING, which unfortunately also suppresses some messages that I would like to keep.
I believe that the bluezdbus client should behave the same way as the other two backends and not emit a logging message on characteristic notification.
I agree. I have not revisited the logging since I first used it for developing the package. Committed some changes now that will be present in upcoming 0.8.0 release.
bluetoothctl -v
) in case of Linux: 5.50Description
The bleak bluezdbus backend client emits a logging message at both the
logging.DEBUG
andlogging.INFO
level every time a characteristic notification is received. This behavior is different than thecorebluetooth
anddotnet
backends which do not log on every notification. This is causing my application to emit several hundred logging messages per second at thelogging.INFO
level, rendering the logging extremely verbose and not very useful. I am currently changing the logging level ofbleak.backends.bluezdbus.client
tologging.WARNING
, which unfortunately also suppresses some messages that I would like to keep.I believe that the bluezdbus client should behave the same way as the other two backends and not emit a logging message on characteristic notification.
See
BleakClientBlueZDBus._properties_changed_callback()
:The
logging.DEBUG
message https://github.com/hbldh/bleak/blob/master/bleak/backends/bluezdbus/client.py#L777The
logging.INFO
message https://github.com/hbldh/bleak/blob/master/bleak/backends/bluezdbus/client.py#L785What I Did
Connect to a BLE device under Linux and enable notifications on a characteristic that changes frequently.
The text was updated successfully, but these errors were encountered: