From f2d4574bd604e71deefbdb853ae19684a4443f31 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 19 Apr 2012 22:24:43 -0700 Subject: [PATCH] config: dump subsys log levels with --show-config Signed-off-by: Sage Weil --- src/common/config.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/config.cc b/src/common/config.cc index fe664254a77f1..b904a8973e235 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -283,6 +283,11 @@ void md_config_t::show_config(std::ostream& out) { out << "name = " << name << std::endl; out << "cluster = " << cluster << std::endl; + for (int o = 0; o < subsys.get_num(); o++) { + out << "debug_" << subsys.get_name(o) + << " = " << subsys.get_log_level(o) + << "/" << subsys.get_gather_level(o) << std::endl; + } for (int i = 0; i < NUM_CONFIG_OPTIONS; i++) { config_option *opt = config_optionsp + i; char *buf; -- 2.39.5