From 6740d512ac12263f7bee370bc14b1179f83af5be Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Tue, 19 Mar 2013 14:45:41 -0700 Subject: [PATCH] FileJournal: quieter debugging on journal scanning Signed-off-by: Samuel Just Reviewed-by: David Zafman --- src/os/FileJournal.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index f3e801bb2074e..52765359b9f45 100644 --- a/src/os/FileJournal.cc +++ b/src/os/FileJournal.cc @@ -1658,6 +1658,7 @@ bool FileJournal::read_entry( g_conf->journal_max_corrupt_search)) { errss << "Entry at pos " << pos << " possibly corrupt due to: (" << ss.str() << ")" << std::endl; + ss.str(string()); ss.clear(); pos = next_pos; result = do_read_entry( @@ -1698,7 +1699,7 @@ bool FileJournal::read_entry( } } - dout(2) << errss.str() << dendl; + dout(25) << errss.str() << dendl; dout(2) << "No further valid entries found, journal is most likely valid" << dendl; return false; @@ -1724,8 +1725,8 @@ FileJournal::read_entry_result FileJournal::do_read_entry( h = (entry_header_t *)hbl.c_str(); if (!h->check_magic(pos, header.get_fsid64())) { - dout(2) << "read_entry " << pos - << " : bad header magic, end of journal" << dendl; + dout(25) << "read_entry " << pos + << " : bad header magic, end of journal" << dendl; if (ss) *ss << "bad header magic"; if (next_pos) -- 2.39.5