From 577efdd9678f2622f10dfd5da8c34301fa5442c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Fortin=20Tam?= Date: Wed, 7 Aug 2024 18:59:51 -0400 Subject: [PATCH] utils/source-discoverer: Add a debug statement This debug statement would happen before any interpretation of errors, which is useful in troubleshooting issues related to interpretation. Related: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/645 --- src/utils/gcal-source-discoverer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/gcal-source-discoverer.c b/src/utils/gcal-source-discoverer.c index b5bda6a7..d2874df7 100644 --- a/src/utils/gcal-source-discoverer.c +++ b/src/utils/gcal-source-discoverer.c @@ -371,6 +371,12 @@ discover_webdav_in_thread (DiscovererData *data, if (local_error) { + g_debug ("Encountered an error in %s (from %s), code %d: '%s'\n", + G_STRFUNC, + g_quark_to_string (local_error->domain), + local_error->code, + local_error->message); + if (local_error->domain == E_SOUP_SESSION_ERROR && is_authentication_error (local_error->code)) {