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
This commit is contained in:
Yueh-Hsuan Chiang 2014-10-29 15:13:31 -07:00
parent 082e49ba82
commit 01e6f85098

View File

@ -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);
}
};