message: slave slowlog control by slowlog-write-errorlog
diff: @@ -232,9 +232,13 @@ void PikaReplBgWorker::HandleBGWorkerWriteDB(void* arg) {
  }
  if (g_pika_conf->slowlog_slower_than() >= 0) {
  + int32_t start_time = start_us / 1000000;
  int64_t duration = slash::NowMicros() - start_us;
  if (duration > g_pika_conf->slowlog_slower_than()) {
  - LOG(ERROR) << "command: " << opt << ", start_time(s): " << start_us / 1000000 << ", duration(us): " << duration;
  + g_pika_server->SlowlogPushEntry(*argv, start_time, duration);
  + if (g_pika_conf->slowlog_write_errorlog()) {
  + LOG(ERROR) << "command: " << opt << ", start_time(s): " << start_time << ", duration(us): " << duration;
  + }
  }
  }
  delete task_arg;
  