Commit 79d5fb14 authored by rakshasa's avatar rakshasa

Added dht_manager log group.

parent 2bc6ffff
......@@ -209,6 +209,7 @@ log_group::internal_print(const HashString* hash, const char* subsystem, const v
}
#define LOG_CASCADE(parent) LOG_CHILDREN_CASCADE(parent, parent)
#define LOG_LINK(parent, child) log_children.push_back(std::make_pair(parent, child))
#define LOG_CHILDREN_CASCADE(parent, subgroup) \
log_children.push_back(std::make_pair(parent + LOG_ERROR, subgroup + LOG_CRITICAL)); \
......@@ -247,6 +248,8 @@ log_initialize() {
LOG_CHILDREN_CASCADE(LOG_CRITICAL, LOG_TRACKER_CRITICAL);
LOG_CHILDREN_CASCADE(LOG_CRITICAL, LOG_TORRENT_CRITICAL);
LOG_LINK(LOG_DHT_ALL, LOG_DHT_MANAGER);
std::sort(log_children.begin(), log_children.end());
log_rebuild_cache();
......
......@@ -114,6 +114,7 @@ enum {
LOG_NON_CASCADING,
LOG_DHT_ALL,
LOG_DHT_MANAGER,
LOG_INSTRUMENTATION_MEMORY,
LOG_INSTRUMENTATION_MINCORE,
......
......@@ -191,6 +191,7 @@ const char* option_list_log_group[] = {
"__non_cascading__",
"dht_all",
"dht_manager",
"instrumentation_memory",
"instrumentation_mincore",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment