Fixed Topology Graph Mappings
Added advanced debug levels
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user