diff --git a/src/onedb/fsck.rb b/src/onedb/fsck.rb index b4b7bd773b..540254020c 100644 --- a/src/onedb/fsck.rb +++ b/src/onedb/fsck.rb @@ -1614,6 +1614,10 @@ EOT def log_error(message) @errors += 1 + log_msg(message) + end + + def log_msg(message) @log_file ||= File.open(LOG, "w") puts message @@ -1624,7 +1628,7 @@ EOT def log_total_errors() puts - puts "Total errors found: #{@errors}" + log_msg "Total errors found: #{@errors}" puts "A copy of this output was stored in #{LOG}" end