Avoid unconditionally calling g_message() from _secret_util_strip_remote_error()
Calling secret_service_get_sync()
results in a message like
** Message: 18:10:42.208: Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
on stderr if gnome-keyring-daemon is not running (which is perfectly possible and happens in practice on systems without gnome-keyring package installed).
This is annoying as there is no simple way to avoid it, especially when calling it from library code which is not supposed to change glib logging function and seems rather useless, as the actual error is returned to the application via GError
and can (and will) be logged by it anyhow.
IMHO g_message()
shouldn't be called at all here, but if it has to be, it would be nice to have some way to opt out from this behaviour, at least.