Promote archive error log level to warning

This commit is contained in:
Alex Ling 2020-06-01 13:38:15 +00:00
parent 1b9d83f367
commit 9b5aea223d

View File

@ -121,9 +121,8 @@ class Title
end
archive_exception = validate_archive path
unless archive_exception.nil?
Logger.warn "File #{path} is corrupted or is not a valid archive. " \
"Ignoring it."
Logger.debug "Archive error: #{archive_exception}"
Logger.warn "Unable to extract archive #{path}. Ignoring it. " \
"Archive error: #{archive_exception}"
next
end
entry = Entry.new path, self, @id, storage