From: Joao Eduardo Luis Date: Mon, 23 Jun 2014 22:05:02 +0000 (+0100) Subject: common: LogClient: output to derr (i.e., dout(-1)) on CLOG_ERROR X-Git-Tag: v0.83~50^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2016%2Fhead;p=ceph.git common: LogClient: output to derr (i.e., dout(-1)) on CLOG_ERROR Signed-off-by: Joao Eduardo Luis --- diff --git a/src/common/LogClient.cc b/src/common/LogClient.cc index 1e290b12a23f..6ecc88ac9a76 100644 --- a/src/common/LogClient.cc +++ b/src/common/LogClient.cc @@ -76,7 +76,8 @@ void LogClient::do_log(clog_type type, std::stringstream& ss) void LogClient::do_log(clog_type type, const std::string& s) { Mutex::Locker l(log_lock); - ldout(cct,0) << "log " << type << " : " << s << dendl; + int lvl = (type == CLOG_ERROR ? -1 : 0); + ldout(cct,lvl) << "log " << type << " : " << s << dendl; LogEntry e; e.who = messenger->get_myinst(); e.stamp = ceph_clock_now(cct);