Skip to content

Commit

Permalink
bugfix: put slowlog of binlog_bgworker into ERROR log
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelMaker committed Feb 24, 2017
1 parent c117840 commit c8b9fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pika_binlog_bgworker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit c8b9fa0

Please sign in to comment.