]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MDSMonitor: do not send redundant MDS health messages to cluster log 22252/head
authorSage Weil <sage@redhat.com>
Fri, 25 May 2018 16:42:49 +0000 (11:42 -0500)
committerSage Weil <sage@redhat.com>
Fri, 25 May 2018 16:44:46 +0000 (11:44 -0500)
Fixes: http://tracker.ceph.com/issues/24308
Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MDSMonitor.cc

index 7fab5d3e81b6836f64732946a9fc15fef687f63c..6c28bbd5c583091239a4334bceda420830bbb05b 100644 (file)
@@ -542,16 +542,8 @@ bool MDSMonitor::prepare_beacon(MonOpRequestRef op)
 
   for (const auto &new_metric: new_health) {
     if (old_types.count(new_metric.type) == 0) {
-      std::stringstream msg;
-      msg << "MDS health message (" << m->get_orig_source_inst().name << "): "
-          << new_metric.message;
-      if (new_metric.sev == HEALTH_ERR) {
-        mon->clog->error() << msg.str();
-      } else if (new_metric.sev == HEALTH_WARN) {
-        mon->clog->warn() << msg.str();
-      } else {
-        mon->clog->info() << msg.str();
-      }
+      dout(10) << "MDS health message (" << m->get_orig_source_inst().name
+              << "): " << new_metric.sev << " " << new_metric.message << dendl;
     }
   }