Fixed Topology Graph Mappings (#14)

Added advanced debug levels

Reviewed-on: #14
This commit was merged in pull request #14.
This commit is contained in:
Koda committed 2026-07-13 20:31:21 +01:00
1 parent 855b282c54
commit 96217c45f6
8 files changed
+183 -1

No files matched your search

+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);
}