gattlib-py/gattlib/device: Fix logging

pull/267/head
Olivier Martin 2024-02-19 12:10:24 +01:00 committed by Olivier Martin
parent 8e5412a1a9
commit 7922810016
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Device:
self.on_connection_callback(self, user_data)
def on_connection_error(self, error: c_int, user_data: py_object):
logging.error("Failed to connect due to error '%s'", error)
logging.error("Failed to connect due to error '0x%x'", error)
if self.on_connection_error_callback:
self.on_connection_error_callback(self, error, user_data)