From: Go MAEDA Date: Sat, 20 Apr 2019 04:18:34 +0000 (+0000) Subject: Merged r18066 from trunk to 3.4-stable (#30457). X-Git-Tag: 3.4.11~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2fb11b673051c0514b58e03b7f582c2972ff2900;p=redmine.git 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 --- 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