Skip to content

Commit

Permalink
Dump db stats in WARN level
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yhchiang committed May 20, 2015
1 parent b588505 commit 812c461
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions db/db_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 812c461

Please sign in to comment.