From 01e6f850986f5d4a88586a84f761d8af36ecea62 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Wed, 29 Oct 2014 15:13:31 -0700 Subject: [PATCH] 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 --- db/transaction_log_impl.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/db/transaction_log_impl.h b/db/transaction_log_impl.h index 319b01cb1..1c7ab78d9 100644 --- a/db/transaction_log_impl.h +++ b/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); } };