FIX: Remap old S3 endpoints during backup restore (#12276)

It also starts outputting exceptions on the console.
This commit is contained in:
Gerhard Schlager
2021-03-03 21:10:09 +01:00
committed by GitHub
parent 42a440f5f9
commit 58c218a4bf
3 changed files with 82 additions and 12 deletions

View File

@ -19,7 +19,12 @@ module BackupRestore
puts(message)
publish_log(message, timestamp)
save_log(message, timestamp)
Rails.logger.error("#{ex}\n" + ex.backtrace.join("\n")) if ex
if ex
formatted_ex = "#{ex}\n" + ex.backtrace.join("\n")
puts formatted_ex
Rails.logger.error(formatted_ex)
end
end
protected