Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Less verbose diagnostics from mce-conf
Since some of the ini-file entries are optional, stop reporting
everything by default as warnings.
  • Loading branch information
spiiroin committed Feb 7, 2013
1 parent 64abe96 commit 0cfd4c7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mce-conf.c
Expand Up @@ -72,7 +72,7 @@ gboolean mce_conf_get_bool(const gchar *group, const gchar *key,
tmp = g_key_file_get_boolean(keyfileptr, group, key, &error);

if (error != NULL) {
mce_log(LL_WARN,
mce_log(LL_DEBUG,
"Could not get config key %s/%s; %s; "
"defaulting to `%d'",
group, key, error->message, defaultval);
Expand Down Expand Up @@ -104,7 +104,7 @@ gint mce_conf_get_int(const gchar *group, const gchar *key,
tmp = g_key_file_get_integer(keyfileptr, group, key, &error);

if (error != NULL) {
mce_log(LL_WARN,
mce_log(LL_DEBUG,
"Could not get config key %s/%s; %s; "
"defaulting to `%d'",
group, key, error->message, defaultval);
Expand Down Expand Up @@ -137,7 +137,7 @@ gint *mce_conf_get_int_list(const gchar *group, const gchar *key,
length, &error);

if (error != NULL) {
mce_log(LL_WARN,
mce_log(LL_DEBUG,
"Could not get config key %s/%s; %s",
group, key, error->message);
if( length )
Expand Down Expand Up @@ -169,7 +169,7 @@ gchar *mce_conf_get_string(const gchar *group, const gchar *key,
tmp = g_key_file_get_string(keyfileptr, group, key, &error);

if (error != NULL) {
mce_log(LL_WARN,
mce_log(LL_DEBUG,
"Could not get config key %s/%s; %s; %s%s%s",
group, key, error->message,
defaultval ? "defaulting to `" : "no default set",
Expand Down Expand Up @@ -206,7 +206,7 @@ gchar **mce_conf_get_string_list(const gchar *group, const gchar *key,
length, &error);

if (error != NULL) {
mce_log(LL_WARN,
mce_log(LL_DEBUG,
"Could not get config key %s/%s; %s",
group, key, error->message);
if( length )
Expand Down Expand Up @@ -320,7 +320,7 @@ static void mce_conf_append_key(GKeyFile *dest, GKeyFile *srce,
tmp = g_strconcat(val, ";", old, NULL);
}

mce_log(LL_NOTICE, "[%s] %s = %s", grp, key, tmp ?: val);
//mce_log(LL_NOTICE, "[%s] %s = %s", grp, key, tmp ?: val);
g_key_file_set_value(dest, grp, key, tmp ?: val);

g_free(tmp);
Expand Down

0 comments on commit 0cfd4c7

Please sign in to comment.