mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 21:55:40 +08:00
Log all errors during clean up as well.
This commit is contained in:
parent
867cefc492
commit
5ce8d7a8c5
@ -55,11 +55,11 @@ module BackupRestore
|
|||||||
begin
|
begin
|
||||||
notify_user
|
notify_user
|
||||||
remove_old
|
remove_old
|
||||||
|
clean_up
|
||||||
rescue => ex
|
rescue => ex
|
||||||
Rails.logger.error("#{ex}\n" + ex.backtrace.join("\n"))
|
Rails.logger.error("#{ex}\n" + ex.backtrace.join("\n"))
|
||||||
end
|
end
|
||||||
|
|
||||||
clean_up
|
|
||||||
@success ? log("[SUCCESS]") : log("[FAILED]")
|
@success ? log("[SUCCESS]") : log("[FAILED]")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user