From d7d81922830b0bb96b6f180808b4d56d67e02383 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 21 Jan 2013 08:45:10 -0800 Subject: [PATCH] config: don't make noise about 'internal_safe_to_start_threads' This is set on start, and subsequently gets into the changed set. Once any other config value is injected, it is the first thing reported by the logs, but is confusing and useless to the user. Hide it. Signed-off-by: Sage Weil --- src/common/config.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/common/config.cc b/src/common/config.cc index 0e86b792ae9ee..f7f87ed6f91c9 100644 --- a/src/common/config.cc +++ b/src/common/config.cc @@ -536,7 +536,9 @@ void md_config_t::_apply_changes(std::ostream *oss) for (changed_set_t::const_iterator c = changed.begin(); c != changed.end(); ++c) { const std::string &key(*c); - if ((oss) && (!_get_val(key.c_str(), &bufptr, sizeof(buf)))) { + if ((oss) && + (!_get_val(key.c_str(), &bufptr, sizeof(buf))) && + key != "internal_safe_to_start_threads") { (*oss) << "applying configuration change: " << key << " = '" << buf << "'\n"; } -- 2.39.5