mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 20:52:46 +08:00
FIX: Log errors in ensure
block of restorer.
This commit is contained in:
parent
03aa13b2bb
commit
76e57ddef3
|
@ -68,8 +68,13 @@ module BackupRestore
|
|||
else
|
||||
@success = true
|
||||
ensure
|
||||
notify_user rescue nil
|
||||
clean_up
|
||||
begin
|
||||
notify_user
|
||||
clean_up
|
||||
rescue => ex
|
||||
Rails.logger.error("#{ex}\n" + ex.backtrace.join("\n"))
|
||||
end
|
||||
|
||||
@success ? log("[SUCCESS]") : log("[FAILED]")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user