Fixed Topology Graph Mappings

Added advanced debug levels
This commit is contained in:
2026-07-13 19:29:35 +00:00
parent 855b282c54
commit a06ef4e9f6
8 changed files with 183 additions and 1 deletions
+3
View File
@@ -14,6 +14,7 @@ void config_load(openuf_config_t *cfg)
cfg->enable_inform = 1;
/* File logging is opt-in to avoid flash wear and unbounded log growth. */
cfg->enable_logging = 0;
cfg->protocol_debug_level = 0;
FILE *f = fopen(OPENUF_CONF_FILE, "r");
if (!f) return;
@@ -35,6 +36,8 @@ void config_load(openuf_config_t *cfg)
else if (!strcmp(key, "enable_announce")) cfg->enable_announce = atoi(val);
else if (!strcmp(key, "enable_inform")) cfg->enable_inform = atoi(val);
else if (!strcmp(key, "enable_logging")) cfg->enable_logging = atoi(val);
else if (!strcmp(key, "protocol_debug_level"))
cfg->protocol_debug_level = atoi(val);
}
fclose(f);
}