1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Feature #3759: Improve fsck log when there are 0 errors

This commit is contained in:
Carlos Martín 2015-05-12 17:58:33 +02:00
parent 9f148b55f2
commit 9467b9d557

View File

@ -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