Skip to content

Commit

Permalink
modules: memfault: Add logging when metric sampling fails
Browse files Browse the repository at this point in the history
Add debug level logging when modem_info calls fail.

Signed-off-by: Jan Tore Guggedal <[email protected]>
  • Loading branch information
jtguggedal authored and rlubos committed Oct 10, 2024
1 parent 3fa6f38 commit da81a34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/memfault-firmware-sdk/memfault_lte_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ static void modem_params_get(void)

err = modem_info_get_rsrp(&rsrp);
if (err) {
LOG_DBG("Failed to get RSRP");
return;
}

Expand All @@ -86,6 +87,7 @@ static void modem_params_get(void)

err = modem_info_get_current_band(&band);
if (err) {
LOG_DBG("Failed to get band");
return;
}

Expand All @@ -97,6 +99,7 @@ static void modem_params_get(void)

err = modem_info_get_snr(&snr);
if (err) {
LOG_DBG("Failed to get SNR")
return;
}

Expand Down

0 comments on commit da81a34

Please sign in to comment.