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.
This commit is contained in:
Thomas Haller 2016-07-10 11:51:11 +02:00
parent 86ad508534
commit bfe4a69c25

View file

@ -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);