[evolution-data-server] secret-monitor: Turn runtime warnings into debug prints



commit 210d2dc5d8d1dcf10f5444d5d8459db74de7ec73
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 22 11:35:43 2021 +0100

    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).

 src/modules/secret-monitor/module-secret-monitor.c | 4 ++--
 1 file 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);
        }


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