From eaba285375248a691aaa896fecdd991ad695c1b1 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 12 May 2017 16:48:57 +0200 Subject: [PATCH] device: downgrade logging messages about (non) pending action Adding/Removing a pending action with assert_not_yet_pending/ assert_is_pending means that we expect that no action is taken. Downgrade the logging level in those cases to . --- src/devices/nm-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 028808cb44..f26d434e9b 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -11765,7 +11765,7 @@ nm_device_add_pending_action (NMDevice *self, const char *action, gboolean asser count + g_slist_length (iter), action); g_return_val_if_reached (FALSE); } else { - _LOGD (LOGD_DEVICE, "add_pending_action (%d): '%s' already pending (expected)", + _LOGT (LOGD_DEVICE, "add_pending_action (%d): '%s' already pending (expected)", count + g_slist_length (iter), action); } return FALSE; @@ -11826,7 +11826,7 @@ nm_device_remove_pending_action (NMDevice *self, const char *action, gboolean as _LOGW (LOGD_DEVICE, "remove_pending_action (%d): '%s' not pending", count, action); g_return_val_if_reached (FALSE); } else - _LOGD (LOGD_DEVICE, "remove_pending_action (%d): '%s' not pending (expected)", count, action); + _LOGT (LOGD_DEVICE, "remove_pending_action (%d): '%s' not pending (expected)", count, action); return FALSE; }