From 08c873c3cefcae218def6f8e86088a719732a7fe Mon Sep 17 00:00:00 2001 From: Reid Draper Date: Wed, 16 Apr 2014 18:09:37 -0500 Subject: [PATCH] Reduce log-level of more hintfile messages See previous commit for more detail. --- src/bitcask_fileops.erl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bitcask_fileops.erl b/src/bitcask_fileops.erl index eacc21e8..b4d8581f 100644 --- a/src/bitcask_fileops.erl +++ b/src/bitcask_fileops.erl @@ -336,8 +336,8 @@ fold_keys(#filestate{fd=Fd}=State, Fun, Acc, recovery, _, true) -> Acc0; {error, Reason} -> HintFile = hintfile_name(State), - error_logger:error_msg("Hintfile '~s' failed fold: ~p\n", - [HintFile, Reason]), + error_logger:warning_msg("Hintfile '~s' failed fold: ~p\n", + [HintFile, Reason]), fold_keys_loop(Fd, 0, Fun, Acc); Acc1 -> Acc1 @@ -590,9 +590,9 @@ fold_hintfile_loop(< - error_logger:error_msg("Hintfile '~s' contains pointer ~p ~p " - "that is greater than total data size ~p\n", - [HintFile, Offset, TotalSz, DataSize]), + error_logger:warning_msg("Hintfile '~s' contains pointer ~p ~p " + "that is greater than total data size ~p\n", + [HintFile, Offset, TotalSz, DataSize]), {error, {trunc_hintfile, Acc0}} end; %% error case where we've gotten to the end of the file without the CRC match