Add logging of S3-related errors (#16381)

This commit is contained in:
Claire
2021-07-21 18:34:39 +02:00
committed by GitHub
parent c1d62c4c01
commit d8629e7b86
4 changed files with 18 additions and 8 deletions

View File

@ -167,7 +167,7 @@ class BackupService < BaseService
io.write(buffer)
end
end
rescue Errno::ENOENT, Seahorse::Client::NetworkingError
Rails.logger.warn "Could not backup file #{filename}: file not found"
rescue Errno::ENOENT, Seahorse::Client::NetworkingError => e
Rails.logger.warn "Could not backup file #{filename}: #{e}"
end
end