|
|
2f68ff |
diff -up gnome-online-accounts-3.28.2/src/goabackend/goautils.c.mute-debug-prints gnome-online-accounts-3.28.2/src/goabackend/goautils.c
|
|
|
2f68ff |
--- gnome-online-accounts-3.28.2/src/goabackend/goautils.c.mute-debug-prints 2019-02-10 20:18:08.000000000 +0100
|
|
|
2f68ff |
+++ gnome-online-accounts-3.28.2/src/goabackend/goautils.c 2022-09-02 12:02:45.020910337 +0200
|
|
|
2f68ff |
@@ -380,7 +380,7 @@ goa_utils_delete_credentials_for_id_sync
|
|
|
2f68ff |
NULL);
|
|
|
2f68ff |
if (sec_error != NULL)
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("secret_password_clear_sync() failed: %s", sec_error->message);
|
|
|
2f68ff |
+ g_debug ("secret_password_clear_sync() failed: %s", sec_error->message);
|
|
|
2f68ff |
g_set_error_literal (error,
|
|
|
2f68ff |
GOA_ERROR,
|
|
|
2f68ff |
GOA_ERROR_FAILED, /* TODO: more specific */
|
|
|
2f68ff |
@@ -428,7 +428,7 @@ goa_utils_lookup_credentials_sync (GoaPr
|
|
|
2f68ff |
NULL);
|
|
|
2f68ff |
if (sec_error != NULL)
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("secret_password_lookup_sync() failed: %s", sec_error->message);
|
|
|
2f68ff |
+ g_debug ("secret_password_lookup_sync() failed: %s", sec_error->message);
|
|
|
2f68ff |
g_set_error_literal (error,
|
|
|
2f68ff |
GOA_ERROR,
|
|
|
2f68ff |
GOA_ERROR_FAILED, /* TODO: more specific */
|
|
|
2f68ff |
@@ -438,7 +438,7 @@ goa_utils_lookup_credentials_sync (GoaPr
|
|
|
2f68ff |
}
|
|
|
2f68ff |
else if (password == NULL)
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("secret_password_lookup_sync() returned NULL");
|
|
|
2f68ff |
+ g_debug ("secret_password_lookup_sync() returned NULL");
|
|
|
2f68ff |
g_set_error_literal (error,
|
|
|
2f68ff |
GOA_ERROR,
|
|
|
2f68ff |
GOA_ERROR_FAILED, /* TODO: more specific */
|
|
|
2f68ff |
@@ -509,7 +509,7 @@ goa_utils_store_credentials_for_id_sync
|
|
|
2f68ff |
"goa-identity", password_key,
|
|
|
2f68ff |
NULL))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("secret_password_store_sync() failed: %s", sec_error->message);
|
|
|
2f68ff |
+ g_debug ("secret_password_store_sync() failed: %s", sec_error->message);
|
|
|
2f68ff |
g_set_error_literal (error,
|
|
|
2f68ff |
GOA_ERROR,
|
|
|
2f68ff |
GOA_ERROR_FAILED, /* TODO: more specific */
|
|
|
2f68ff |
@@ -562,11 +562,11 @@ goa_utils_keyfile_copy_group (GKeyFile
|
|
|
2f68ff |
keys = g_key_file_get_keys (src_key_file, src_group_name, NULL, &error);
|
|
|
2f68ff |
if (error != NULL)
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error getting keys from group %s: %s (%s, %d)",
|
|
|
2f68ff |
- src_group_name,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error getting keys from group %s: %s (%s, %d)",
|
|
|
2f68ff |
+ src_group_name,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
goto out;
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -580,12 +580,12 @@ goa_utils_keyfile_copy_group (GKeyFile
|
|
|
2f68ff |
src_value = g_key_file_get_value (src_key_file, src_group_name, keys[i], &error);
|
|
|
2f68ff |
if (error != NULL)
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error reading key %s from group %s: %s (%s, %d)",
|
|
|
2f68ff |
- keys[i],
|
|
|
2f68ff |
- src_group_name,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error reading key %s from group %s: %s (%s, %d)",
|
|
|
2f68ff |
+ keys[i],
|
|
|
2f68ff |
+ src_group_name,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
continue;
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -597,12 +597,12 @@ goa_utils_keyfile_copy_group (GKeyFile
|
|
|
2f68ff |
if (!g_error_matches (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_GROUP_NOT_FOUND)
|
|
|
2f68ff |
&& !g_error_matches (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_KEY_NOT_FOUND))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error reading key %s from group %s: %s (%s, %d)",
|
|
|
2f68ff |
- keys[i],
|
|
|
2f68ff |
- src_group_name,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error reading key %s from group %s: %s (%s, %d)",
|
|
|
2f68ff |
+ keys[i],
|
|
|
2f68ff |
+ src_group_name,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
}
|
|
|
2f68ff |
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
@@ -635,12 +635,12 @@ goa_utils_keyfile_get_boolean (GKeyFile
|
|
|
2f68ff |
{
|
|
|
2f68ff |
if (!g_error_matches (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_KEY_NOT_FOUND))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error reading key %s from group %s in keyfile: %s (%s, %d)",
|
|
|
2f68ff |
- key,
|
|
|
2f68ff |
- group_name,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error reading key %s from group %s in keyfile: %s (%s, %d)",
|
|
|
2f68ff |
+ key,
|
|
|
2f68ff |
+ group_name,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
}
|
|
|
2f68ff |
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
@@ -667,11 +667,11 @@ goa_utils_keyfile_remove_key (GoaAccount
|
|
|
2f68ff |
G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS,
|
|
|
2f68ff |
&error))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error loading keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
- path,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error loading keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
+ path,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
goto out;
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -683,7 +683,7 @@ goa_utils_keyfile_remove_key (GoaAccount
|
|
|
2f68ff |
if (!g_key_file_save_to_file (key_file, path, &error))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
g_prefix_error (&error, "Error writing key-value-file %s: ", path);
|
|
|
2f68ff |
- g_warning ("%s (%s, %d)", error->message, g_quark_to_string (error->domain), error->code);
|
|
|
2f68ff |
+ g_debug ("%s (%s, %d)", error->message, g_quark_to_string (error->domain), error->code);
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
goto out;
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -714,11 +714,11 @@ goa_utils_keyfile_set_boolean (GoaAccoun
|
|
|
2f68ff |
G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS,
|
|
|
2f68ff |
&error))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error loading keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
- path,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error loading keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
+ path,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
goto out;
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -727,12 +727,12 @@ goa_utils_keyfile_set_boolean (GoaAccoun
|
|
|
2f68ff |
old_value = g_key_file_get_boolean (key_file, group, key, &error);
|
|
|
2f68ff |
if (error != NULL)
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error reading key %s from keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
- key,
|
|
|
2f68ff |
- path,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error reading key %s from keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
+ key,
|
|
|
2f68ff |
+ path,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
needs_update = TRUE;
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -750,7 +750,7 @@ goa_utils_keyfile_set_boolean (GoaAccoun
|
|
|
2f68ff |
if (!g_key_file_save_to_file (key_file, path, &error))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
g_prefix_error (&error, "Error writing key-value-file %s: ", path);
|
|
|
2f68ff |
- g_warning ("%s (%s, %d)", error->message, g_quark_to_string (error->domain), error->code);
|
|
|
2f68ff |
+ g_debug ("%s (%s, %d)", error->message, g_quark_to_string (error->domain), error->code);
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
goto out;
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -781,11 +781,11 @@ goa_utils_keyfile_set_string (GoaAccount
|
|
|
2f68ff |
G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS,
|
|
|
2f68ff |
&error))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error loading keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
- path,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error loading keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
+ path,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
goto out;
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -794,12 +794,12 @@ goa_utils_keyfile_set_string (GoaAccount
|
|
|
2f68ff |
old_value = g_key_file_get_string (key_file, group, key, &error);
|
|
|
2f68ff |
if (error != NULL)
|
|
|
2f68ff |
{
|
|
|
2f68ff |
- g_warning ("Error reading key %s from keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
- key,
|
|
|
2f68ff |
- path,
|
|
|
2f68ff |
- error->message,
|
|
|
2f68ff |
- g_quark_to_string (error->domain),
|
|
|
2f68ff |
- error->code);
|
|
|
2f68ff |
+ g_debug ("Error reading key %s from keyfile %s: %s (%s, %d)",
|
|
|
2f68ff |
+ key,
|
|
|
2f68ff |
+ path,
|
|
|
2f68ff |
+ error->message,
|
|
|
2f68ff |
+ g_quark_to_string (error->domain),
|
|
|
2f68ff |
+ error->code);
|
|
|
2f68ff |
needs_update = TRUE;
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
}
|
|
|
2f68ff |
@@ -817,7 +817,7 @@ goa_utils_keyfile_set_string (GoaAccount
|
|
|
2f68ff |
if (!g_key_file_save_to_file (key_file, path, &error))
|
|
|
2f68ff |
{
|
|
|
2f68ff |
g_prefix_error (&error, "Error writing key-value-file %s: ", path);
|
|
|
2f68ff |
- g_warning ("%s (%s, %d)", error->message, g_quark_to_string (error->domain), error->code);
|
|
|
2f68ff |
+ g_debug ("%s (%s, %d)", error->message, g_quark_to_string (error->domain), error->code);
|
|
|
2f68ff |
g_error_free (error);
|
|
|
2f68ff |
goto out;
|
|
|
2f68ff |
}
|