From 5f884487dca994685c4b4525bf3a543b3f5c119f Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 20 Apr 2019 04:17:24 +0000 Subject: [PATCH] Merged r18066 from trunk to 4.0-stable (#30457). git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@18067 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/mail_handler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index be4b363b1..4f2c8cc04 100755 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -54,7 +54,7 @@ class MailHandler < ActionMailer::Base def self.safe_receive(*args) receive(*args) rescue Exception => e - logger.error "MailHandler: an unexpected error occurred when receiving email: #{e.message}" if logger + Rails.logger.error "MailHandler: an unexpected error occurred when receiving email: #{e.message}" return false end -- 2.39.5