Apply InfoLogLevel to the logs in db/transaction_log_impl.h

Summary: Apply InfoLogLevel to the logs in db/transaction_log_impl.h

Test Plan: make

Reviewers: ljin, sdong, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D27867
main
Yueh-Hsuan Chiang 10 years ago
parent 082e49ba82
commit 01e6f85098
  1. 6
      db/transaction_log_impl.h

@ -21,10 +21,12 @@ struct LogReporter : public log::Reader::Reporter {
Env* env;
Logger* info_log;
virtual void Corruption(size_t bytes, const Status& s) {
Log(info_log, "dropping %zu bytes; %s", bytes, s.ToString().c_str());
Log(InfoLogLevel::ERROR_LEVEL, info_log,
"dropping %zu bytes; %s", bytes, s.ToString().c_str());
}
virtual void Info(const char* s) {
Log(info_log, "%s", s);
Log(InfoLogLevel::INFO_LEVEL,
info_log, "%s", s);
}
};

Loading…
Cancel
Save