FIX: Log errors in `ensure` block of restorer.
This commit is contained in:
parent
03aa13b2bb
commit
76e57ddef3
|
@ -68,8 +68,13 @@ module BackupRestore
|
||||||
else
|
else
|
||||||
@success = true
|
@success = true
|
||||||
ensure
|
ensure
|
||||||
notify_user rescue nil
|
begin
|
||||||
|
notify_user
|
||||||
clean_up
|
clean_up
|
||||||
|
rescue => ex
|
||||||
|
Rails.logger.error("#{ex}\n" + ex.backtrace.join("\n"))
|
||||||
|
end
|
||||||
|
|
||||||
@success ? log("[SUCCESS]") : log("[FAILED]")
|
@success ? log("[SUCCESS]") : log("[FAILED]")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue