Log all errors during clean up as well.

This commit is contained in:
Guo Xiang Tan 2017-06-14 11:03:50 +09:00
parent 867cefc492
commit 5ce8d7a8c5

View File

@ -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