From: Danny Al-Gaaf Date: Thu, 6 Mar 2014 00:23:48 +0000 (+0100) Subject: config.cc: add debug_ prefix to subsys logging levels X-Git-Tag: v0.78~60 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7afa1453b5b6b1946cf890d2e91cb3dc3e397f1;p=ceph.git config.cc: add debug_ prefix to subsys logging levels Add debug_ prefix also for 'ceph --admin-daemon *.asok config show' as already done e.g. by 'ceph-osd --show-config'. Fixes: #7602 Signed-off-by: Danny Al-Gaaf Reviewed-by: Sage Weil --- diff --git a/src/common/config.cc b/src/common/config.cc index 1171637269dc..4b85b6bf923a 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -334,9 +334,11 @@ void md_config_t::_show_config(std::ostream *out, Formatter *f) << "/" << subsys.get_gather_level(o) << std::endl; if (f) { ostringstream ss; + std::string debug_name = "debug_"; + debug_name += subsys.get_name(o); ss << subsys.get_log_level(o) << "/" << subsys.get_gather_level(o); - f->dump_string(subsys.get_name(o).c_str(), ss.str()); + f->dump_string(debug_name.c_str(), ss.str()); } } for (int i = 0; i < NUM_CONFIG_OPTIONS; i++) {