Apply InfoLogLevel to the logs in table/meta_blocks.cc

Summary: Apply InfoLogLevel to the logs in table/meta_blocks.cc

Test Plan: make

Reviewers: ljin, sdong, igor

Reviewed By: igor

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D27903
main
Yueh-Hsuan Chiang 10 years ago
parent 635905481d
commit 217cc217d7
  1. 8
      table/meta_blocks.cc

@ -86,9 +86,9 @@ void LogPropertiesCollectionError(
assert(method == "Add" || method == "Finish"); assert(method == "Add" || method == "Finish");
std::string msg = std::string msg =
"[Warning] encountered error when calling TablePropertiesCollector::" + "Encountered error when calling TablePropertiesCollector::" +
method + "() with collector name: " + name; method + "() with collector name: " + name;
Log(info_log, "%s", msg.c_str()); Log(InfoLogLevel::ERROR_LEVEL, info_log, "%s", msg.c_str());
} }
bool NotifyCollectTableCollectorsOnAdd( bool NotifyCollectTableCollectorsOnAdd(
@ -192,9 +192,9 @@ Status ReadProperties(const Slice &handle_value, RandomAccessFile *file,
if (!GetVarint64(&raw_val, &val)) { if (!GetVarint64(&raw_val, &val)) {
// skip malformed value // skip malformed value
auto error_msg = auto error_msg =
"[Warning] detect malformed value in properties meta-block:" "Detect malformed value in properties meta-block:"
"\tkey: " + key + "\tval: " + raw_val.ToString(); "\tkey: " + key + "\tval: " + raw_val.ToString();
Log(logger, "%s", error_msg.c_str()); Log(InfoLogLevel::ERROR_LEVEL, logger, "%s", error_msg.c_str());
continue; continue;
} }
*(pos->second) = val; *(pos->second) = val;

Loading…
Cancel
Save