mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 14:56:15 +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
|
||||
notify_user
|
||||
remove_old
|
||||
clean_up
|
||||
rescue => ex
|
||||
Rails.logger.error("#{ex}\n" + ex.backtrace.join("\n"))
|
||||
end
|
||||
|
||||
clean_up
|
||||
@success ? log("[SUCCESS]") : log("[FAILED]")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user