From: Samuel Just Date: Tue, 19 Mar 2013 21:45:41 +0000 (-0700) Subject: FileJournal: quieter debugging on journal scanning X-Git-Tag: v0.62~192 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6740d512ac12263f7bee370bc14b1179f83af5be;p=ceph.git FileJournal: quieter debugging on journal scanning Signed-off-by: Samuel Just Reviewed-by: David Zafman --- diff --git a/src/os/FileJournal.cc b/src/os/FileJournal.cc index f3e801bb2074..52765359b9f4 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)