Skip to content

Commit

Permalink
lib: modem_info: Reduce log level for failing to get operator
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jtguggedal authored and cvinayak committed Feb 7, 2024
1 parent 20e8583 commit b5fc73f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/modem_info/modem_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b5fc73f

Please sign in to comment.