From: zhangjianwei Date: Fri, 2 Jun 2023 05:37:56 +0000 (+0000) Subject: common: LogClient do not output meaningless logs by default X-Git-Tag: testing/wip-batrick-testing-20240411.154038~620^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=889b94d510356ac67983190d7fc02276057cbe14;p=ceph-ci.git common: LogClient do not output meaningless logs by default the default output log to syslog/graylog is meaningless it will consume a lot of log resources Fixes: https://tracker.ceph.com/issues/63727 Signed-off-by: zhangjianwei --- diff --git a/src/common/LogClient.cc b/src/common/LogClient.cc index 1ba363da790..d5ae6b75321 100644 --- a/src/common/LogClient.cc +++ b/src/common/LogClient.cc @@ -186,13 +186,11 @@ void LogChannel::do_log(clog_type prio, const std::string& s) // log to syslog? if (do_log_to_syslog()) { - ldout(cct,0) << __func__ << " log to syslog" << dendl; e.log_to_syslog(get_log_prio(), get_syslog_facility()); } // log to graylog? if (do_log_to_graylog()) { - ldout(cct,0) << __func__ << " log to graylog" << dendl; graylog->log_log_entry(&e); } }