From b5fc73f594532ea6f721a3b69f14a1d148078ebf Mon Sep 17 00:00:00 2001 From: Jan Tore Guggedal Date: Tue, 6 Feb 2024 14:02:56 +0100 Subject: [PATCH] lib: modem_info: Reduce log level for failing to get operator It's common that the modem does not report the operator name, so the log level is reduced to debug to avoid confusion. The error code is still reported. Signed-off-by: Jan Tore Guggedal --- lib/modem_info/modem_info.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modem_info/modem_info.c b/lib/modem_info/modem_info.c index 544ebcd003a9..0bd52b2d95ac 100644 --- a/lib/modem_info/modem_info.c +++ b/lib/modem_info/modem_info.c @@ -974,8 +974,8 @@ int modem_info_get_operator(char *buf, size_t buf_size) buf); if (ret != 1) { - /* Warning instead of error because it is not always reported */ - LOG_WRN("No valid operator"); + /* Debug instead of error because it is not always reported */ + LOG_DBG("No valid operator name found"); return map_nrf_modem_at_scanf_error(ret); }