summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-07-10 11:51:11 +0200
committerThomas Haller <thaller@redhat.com>2016-07-10 11:53:11 +0200
commitbfe4a69c2555b1bc8c89821425efcca660064eb5 (patch)
treea230ba8585e06f9bea9fcf68345cd9068b26a101
parent86ad50853485b8e7831281989502b5e9d25ff7d9 (diff)
downloadNetworkManager-bfe4a69c2555b1bc8c89821425efcca660064eb5.tar.gz
wwan: downgrade warning logging about 'No SIM object available'
On every start of NetworkManager I'd see a warning message: modem-broadband[cdc-wdm0]: failed to retrieve SIM object: No SIM object available Apparently, to warn about this is too alarming.
-rw-r--r--src/devices/wwan/nm-modem-broadband.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/devices/wwan/nm-modem-broadband.c b/src/devices/wwan/nm-modem-broadband.c
index e72b75923c..727c840983 100644
--- a/src/devices/wwan/nm-modem-broadband.c
+++ b/src/devices/wwan/nm-modem-broadband.c
@@ -1283,8 +1283,10 @@ get_sim_ready (MMModem *modem,
if (self->priv->ctx && self->priv->ctx->step == CONNECT_STEP_WAIT_FOR_SIM)
connect_context_step (self);
} else {
- _LOGW ("failed to retrieve SIM object: %s",
- NM_G_ERROR_MSG (error));
+ _NMLOG (g_error_matches (error, MM_CORE_ERROR, MM_CORE_ERROR_NOT_FOUND)
+ ? LOGL_INFO : LOGL_WARN,
+ "failed to retrieve SIM object: %s",
+ NM_G_ERROR_MSG (error));
}
g_clear_error (&error);
g_object_unref (self);