summaryrefslogtreecommitdiff
path: root/libnm-glib/nm-object.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-28 18:12:28 +0100
committerThomas Haller <thaller@redhat.com>2016-03-03 18:54:20 +0100
commitcd4f84b7381707bff6e5fcc3cee84492e12c6879 (patch)
tree1dbe34839e59cf1d1d61e63dc3da56034a4c3508 /libnm-glib/nm-object.c
parent6265398b6e33ea67d73c592dd3a88f3fafc5bc7a (diff)
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 'libnm-glib/nm-object.c')
-rw-r--r--libnm-glib/nm-object.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libnm-glib/nm-object.c b/libnm-glib/nm-object.c
index b252dc7a6..c7201cda2 100644
--- a/libnm-glib/nm-object.c
+++ b/libnm-glib/nm-object.c
@@ -1402,11 +1402,10 @@ _nm_object_reload_property (NMObject *object,
G_TYPE_INVALID,
G_TYPE_VALUE, &value,
G_TYPE_INVALID)) {
- dbgmsg ("%s: Error getting '%s' for %s: (%d) %s\n",
+ dbgmsg ("%s: Error getting '%s' for %s: %s\n",
__func__,
prop_name,
nm_object_get_path (object),
- err->code,
err->message);
g_clear_error (&err);
return;