From 2fb11b673051c0514b58e03b7f582c2972ff2900 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 20 Apr 2019 04:18:34 +0000 Subject: [PATCH] Merged r18066 from trunk to 3.4-stable (#30457). git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@18068 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 aa0ea1e45..5590534d9 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