[gnome-bluetooth/wip/hadess/fix-keyboard-cancel: 7/10] settings-widget: Print connection error in debug output




commit 18477115fb132a4dbd5f57fdfb8131071ccb2462
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 18 15:12:16 2021 +0100

    settings-widget: Print connection error in debug output
    
    Instead of eating it.

 lib/bluetooth-settings-widget.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/bluetooth-settings-widget.c b/lib/bluetooth-settings-widget.c
index 4f24f108..15c5489c 100644
--- a/lib/bluetooth-settings-widget.c
+++ b/lib/bluetooth-settings-widget.c
@@ -855,7 +855,7 @@ connect_callback (GObject      *source_object,
                        data->timeout_id = g_timeout_add (500, connect_timeout_cb, data);
                        return;
                }
-               g_debug ("Failed to connect to device %s", data->device);
+               g_debug ("Failed to connect to device %s: %s", data->device, error->message);
        }
 
        turn_off_pairing (data->self, data->device);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]