mirror of https://github.com/labapart/gattlib
gattlib-py/gattlib/device: Fix logging
parent
8e5412a1a9
commit
7922810016
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue