]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
common: LogClient do not output meaningless logs by default
authorzhangjianwei <zhangjianwei2_yewu@cmss.chinamobile.com>
Fri, 2 Jun 2023 05:37:56 +0000 (05:37 +0000)
committerzhangjianwei2 <zhangjianwei2_yewu@cmss.chinamobile.com>
Wed, 6 Dec 2023 02:56:04 +0000 (10:56 +0800)
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 <zhangjianwei2@cmss.chinamobile.com>
src/common/LogClient.cc

index 1ba363da790e1e629e4f65d382a4209db355e866..d5ae6b753216f08962d261b7965912dc73379fb3 100644 (file)
@@ -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);
   }
 }