Skip to content

Commit 2dc1038

Browse files
committed
app_rpc: workaround set_log_level lockup
The set_log_level RPC now prints out one line recapping the number of modules reset and the level they were reset to. This replaces a log message for each item module, when the RPC was called multiple times, caused deadlock behavior in the app. Signed-off-by: Mike Szczys <[email protected]>
1 parent 834fed8 commit 2dc1038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app_rpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ static enum golioth_rpc_status on_set_log_level(QCBORDecodeContext *request_para
8585
break;
8686
}
8787

88-
LOG_WRN("Settings %s log level to: %d", source_name, log_level);
8988
log_filter_set(NULL, 0, source_id, log_level);
9089
++source_id;
9190
}
9291

92+
LOG_WRN("Log levels for %d modules set to: %d", source_id, log_level);
9393
return GOLIOTH_RPC_OK;
9494
}
9595

0 commit comments

Comments
 (0)