From 2b1f23dcae79216c1ff259afe176743ae25dce84 Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Thu, 30 Oct 2014 16:54:34 -0700 Subject: [PATCH] Apply InfoLogLevel to the logs in db/db_iter.cc Summary: Apply InfoLogLevel to the logs in db/db_iter.cc Test Plan: make Reviewers: igor, ljin, sdong Reviewed By: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D27861 --- db/db_iter.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/db/db_iter.cc b/db/db_iter.cc index 815562c9f..2fd4a9e2e 100644 --- a/db/db_iter.cc +++ b/db/db_iter.cc @@ -162,7 +162,8 @@ class DBIter: public Iterator { inline bool DBIter::ParseKey(ParsedInternalKey* ikey) { if (!ParseInternalKey(iter_->key(), ikey)) { status_ = Status::Corruption("corrupted internal key in DBIter"); - Log(logger_, "corrupted internal key in DBIter: %s", + Log(InfoLogLevel::ERROR_LEVEL, + logger_, "corrupted internal key in DBIter: %s", iter_->key().ToString(true).c_str()); return false; } else { @@ -278,7 +279,8 @@ void DBIter::FindNextUserEntryInternal(bool skipping) { // iter_ points to the next entry (or invalid) void DBIter::MergeValuesNewToOld() { if (!user_merge_operator_) { - Log(logger_, "Options::merge_operator is null."); + Log(InfoLogLevel::ERROR_LEVEL, + logger_, "Options::merge_operator is null."); throw std::logic_error("DBIter::MergeValuesNewToOld() with" " Options::merge_operator null"); }