summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2021-11-22 11:35:43 +0100
committerMilan Crha <mcrha@redhat.com>2021-11-22 11:35:43 +0100
commit210d2dc5d8d1dcf10f5444d5d8459db74de7ec73 (patch)
tree9b390ff8c3692e2bb70f40f33f3aa6ddf9bfd94a /src/modules
parent956345d0b2bb8137818ce9c722c6d5c0fdf7b4e2 (diff)
downloadevolution-data-server-210d2dc5d8d1dcf10f5444d5d8459db74de7ec73.tar.gz
secret-monitor: Turn runtime warnings into debug prints
No need to write failures from this module into the journal log, because these failures are not critical, they only mean that some credentials could not be deleted due to certain error. The errors can still be shown when the evolution-source-registry debugging is turned on (when it's run with ESR_DEBUG=1).
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/secret-monitor/module-secret-monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/secret-monitor/module-secret-monitor.c b/src/modules/secret-monitor/module-secret-monitor.c
index 7c7e48713..0eb21669d 100644
--- a/src/modules/secret-monitor/module-secret-monitor.c
+++ b/src/modules/secret-monitor/module-secret-monitor.c
@@ -179,7 +179,7 @@ secret_monitor_scan_secrets_thread (gpointer user_data)
g_list_free_full (list, (GDestroyNotify) g_object_unref);
if (local_error != NULL) {
- g_warning ("%s: %s", G_STRFUNC, local_error->message);
+ e_source_registry_debug_print ("%s: %s", G_STRFUNC, local_error->message);
g_error_free (local_error);
}
@@ -218,7 +218,7 @@ secret_monitor_scan_secrets_timeout_cb (gpointer user_data)
g_thread_unref (thread);
if (local_error != NULL) {
- g_warning ("%s: %s", G_STRFUNC, local_error->message);
+ e_source_registry_debug_print ("%s: %s", G_STRFUNC, local_error->message);
g_error_free (local_error);
g_object_unref (server);
}