[evolution-data-server] e_module_load_all_in_directory: Use g_debug() instead of g_warning()



commit 8f559b2e7023fe20a7697d875fb9849707ba8949
Author: Milan Crha <mcrha redhat com>
Date:   Mon Sep 11 14:06:04 2017 +0200

    e_module_load_all_in_directory: Use g_debug() instead of g_warning()
    
    While most of the module directories exist always, the credential-modules
    directory exists only if GOA or UOA modules are built. As the warning
    doesn't make much sense in such case, make it a debug message instead.

 src/libedataserver/e-module.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libedataserver/e-module.c b/src/libedataserver/e-module.c
index da8c3c0..5485c40 100644
--- a/src/libedataserver/e-module.c
+++ b/src/libedataserver/e-module.c
@@ -289,8 +289,8 @@ e_module_load_all_in_directory (const gchar *dirname)
 
        dir = g_dir_open (dirname, 0, &error);
        if (dir == NULL) {
-               g_warning ("%s: %s", G_STRFUNC, error->message);
-               g_error_free (error);
+               g_debug ("%s: %s", G_STRFUNC, error ? error->message : "Unknown error");
+               g_clear_error (&error);
                return NULL;
        }
 


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