diff options
| author | Thomas Haller <thaller@redhat.com> | 2016-02-28 18:12:28 +0100 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2016-03-03 18:54:20 +0100 |
| commit | cd4f84b7381707bff6e5fcc3cee84492e12c6879 (patch) | |
| tree | 1dbe34839e59cf1d1d61e63dc3da56034a4c3508 /src/nm-auth-utils.c | |
| parent | 6265398b6e33ea67d73c592dd3a88f3fafc5bc7a (diff) | |
| download | NetworkManager-cd4f84b7381707bff6e5fcc3cee84492e12c6879.tar.gz | |
all: don't include error->code in log messages
GError codes are only unique per domain, so logging the code without
also indicating the domain is not helpful. And anyway, if the error
messages are not distinctive enough to tell the whole story then we
should fix the error messages.
Based-on-patch-by: Dan Winship <danw@gnome.org>
Diffstat (limited to 'src/nm-auth-utils.c')
| -rw-r--r-- | src/nm-auth-utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nm-auth-utils.c b/src/nm-auth-utils.c index e741546bbc..928e88b0c4 100644 --- a/src/nm-auth-utils.c +++ b/src/nm-auth-utils.c @@ -335,8 +335,8 @@ pk_call_cb (GObject *object, GAsyncResult *result, gpointer user_data) } if (error) { - nm_log_warn (LOGD_CORE, "error requesting auth for %s: (%d) %s", - call->permission, error->code, error->message); + nm_log_warn (LOGD_CORE, "error requesting auth for %s: %s", + call->permission, error->message); if (!call->chain->error) { call->chain->error = error; |
