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:
parent
082e49ba82
commit
01e6f85098
@ -21,10 +21,12 @@ struct LogReporter : public log::Reader::Reporter {
|
|||||||
Env* env;
|
Env* env;
|
||||||
Logger* info_log;
|
Logger* info_log;
|
||||||
virtual void Corruption(size_t bytes, const Status& s) {
|
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) {
|
virtual void Info(const char* s) {
|
||||||
Log(info_log, "%s", s);
|
Log(InfoLogLevel::INFO_LEVEL,
|
||||||
|
info_log, "%s", s);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user