From c8b9fa0e2d541be7db61c5ab6396e4a8e13bdf94 Mon Sep 17 00:00:00 2001 From: KernelMaker Date: Fri, 24 Feb 2017 15:21:30 +0800 Subject: [PATCH] bugfix: put slowlog of binlog_bgworker into ERROR log --- src/pika_binlog_bgworker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pika_binlog_bgworker.cc b/src/pika_binlog_bgworker.cc index 25d0e6341b..ec26fef9b6 100644 --- a/src/pika_binlog_bgworker.cc +++ b/src/pika_binlog_bgworker.cc @@ -78,7 +78,7 @@ void BinlogBGWorker::DoBinlogBG(void* arg) { if (g_pika_conf->slowlog_slower_than() >= 0) { int64_t duration = slash::NowMicros() - start_us; if (duration > g_pika_conf->slowlog_slower_than()) { - LOG(WARNING) << "command:" << opt << ", start_time(s): " << start_us / 1000000 << ", duration(us): " << duration; + LOG(ERROR) << "command:" << opt << ", start_time(s): " << start_us / 1000000 << ", duration(us): " << duration; } }