From: Sage Weil Date: Fri, 25 May 2018 16:42:49 +0000 (-0500) Subject: mon/MDSMonitor: do not send redundant MDS health messages to cluster log X-Git-Tag: v12.2.6~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d80356eb536b5c2c134e66a776c30ca73ba32b10;p=ceph.git mon/MDSMonitor: do not send redundant MDS health messages to cluster log Fixes: http://tracker.ceph.com/issues/24308 Signed-off-by: Sage Weil (cherry picked from commit a2b6d9176e0ad786bf6fe4a0a6eb9ba51f1ce720) --- diff --git a/src/mon/MDSMonitor.cc b/src/mon/MDSMonitor.cc index 68f1e7ccc3ec..c13288e7cd0d 100644 --- a/src/mon/MDSMonitor.cc +++ b/src/mon/MDSMonitor.cc @@ -558,16 +558,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; } }