mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
FIX: Remap old S3 endpoints during backup restore (#12276)
It also starts outputting exceptions on the console.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user