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
This commit is contained in:
Jean-François Fortin Tam
2024-08-16 18:47:57 -04:00
parent 2860a468f1
commit 577efdd967
+6
View File
@@ -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))
{