From 792281001676d3cbf80a4f7cd3857f8a53abfc39 Mon Sep 17 00:00:00 2001 From: Olivier Martin Date: Mon, 19 Feb 2024 12:10:24 +0100 Subject: [PATCH] gattlib-py/gattlib/device: Fix logging --- gattlib-py/gattlib/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gattlib-py/gattlib/device.py b/gattlib-py/gattlib/device.py index 2b2ad48..bb8f753 100644 --- a/gattlib-py/gattlib/device.py +++ b/gattlib-py/gattlib/device.py @@ -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)