mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
Log all errors during clean up as well.
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user