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:
parent
9f148b55f2
commit
9467b9d557
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user