Skip to content
Snippets Groups Projects
Commit 656bdb8f authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Log a warning when falling-back the loaded node configuration.

parent 81d18d05
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #885 passed
...@@ -5716,6 +5716,7 @@ NO_SSH: ...@@ -5716,6 +5716,7 @@ NO_SSH:
lprintf(LOG_INFO,"Node %d Loading configuration files from %s", cfg->node_num, cfg->ctrl_dir); lprintf(LOG_INFO,"Node %d Loading configuration files from %s", cfg->node_num, cfg->ctrl_dir);
SAFECOPY(logstr,UNKNOWN_LOAD_ERROR); SAFECOPY(logstr,UNKNOWN_LOAD_ERROR);
if(!load_cfg(cfg, node_text[i - 1], TRUE, logstr)) { if(!load_cfg(cfg, node_text[i - 1], TRUE, logstr)) {
lprintf(LOG_WARNING, "Node %d LOAD ERROR: %s, falling back to Node %d", cfg->node_num, logstr, first_node);
cfg->node_num = first_node; cfg->node_num = first_node;
if(!load_cfg(cfg, node_text[i - 1], TRUE, logstr)) { if(!load_cfg(cfg, node_text[i - 1], TRUE, logstr)) {
lprintf(LOG_CRIT,"!ERROR %s",logstr); lprintf(LOG_CRIT,"!ERROR %s",logstr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment