]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: less noise about configs from mon we can't apply 31988/head
authorSage Weil <sage@redhat.com>
Tue, 3 Dec 2019 23:54:44 +0000 (17:54 -0600)
committerSage Weil <sage@redhat.com>
Tue, 3 Dec 2019 23:54:44 +0000 (17:54 -0600)
It is normal to set things in teh mon config database that can't be absorbed
by clients/daemons at runtime.  Things like ms_type can/should be set there
(so that they, for instance, help produce the 'config minimal-conf') but
we don't need daemons to spit out error messages every time they get a config
update.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config.cc

index 0259ef2f8ee22de3eb4303f9357addb009e06208..019cb8c2f9ce0f9799321d270165cdf9dce72cf4 100644 (file)
@@ -293,8 +293,8 @@ int md_config_t::set_mon_vals(CephContext *cct,
     std::string err;
     int r = _set_val(values, tracker, i.second, *o, CONF_MON, &err);
     if (r < 0) {
-      lderr(cct) << __func__ << " failed to set " << i.first << " = "
-                << i.second << ": " << err << dendl;
+      ldout(cct, 4) << __func__ << " failed to set " << i.first << " = "
+                   << i.second << ": " << err << dendl;
       ignored_mon_values.emplace(i);
     } else if (r == ConfigValues::SET_NO_CHANGE ||
               r == ConfigValues::SET_NO_EFFECT) {