From 812c461c96869ebcd8e629da8f01e1cea01c00ca Mon Sep 17 00:00:00 2001 From: Yueh-Hsuan Chiang Date: Tue, 19 May 2015 16:38:31 -0700 Subject: [PATCH] Dump db stats in WARN level Summary: Dump db stats in WARN level Test Plan: run db_bench and verify the LOG Reviewers: igor, MarkCallaghan Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D38691 --- db/db_impl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/db_impl.cc b/db/db_impl.cc index 797f2d8ff..757571dc7 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -425,7 +425,7 @@ const Status DBImpl::CreateArchivalDirectory() { void DBImpl::PrintStatistics() { auto dbstats = db_options_.statistics.get(); if (dbstats) { - Log(InfoLogLevel::INFO_LEVEL, db_options_.info_log, + Log(InfoLogLevel::WARN_LEVEL, db_options_.info_log, "STATISTICS:\n %s", dbstats->ToString().c_str()); } @@ -464,9 +464,9 @@ void DBImpl::MaybeDumpStats() { DB::Properties::kDBStats, &stats); } - Log(InfoLogLevel::INFO_LEVEL, + Log(InfoLogLevel::WARN_LEVEL, db_options_.info_log, "------- DUMPING STATS -------"); - Log(InfoLogLevel::INFO_LEVEL, + Log(InfoLogLevel::WARN_LEVEL, db_options_.info_log, "%s", stats.c_str()); #endif // !ROCKSDB_LITE