summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-04-20 04:11:55 +0000
committerGo MAEDA <maeda@farend.jp>2019-04-20 04:11:55 +0000
commit2a154205ed05f6900495ccc39062c32b0775bab1 (patch)
tree30218f79cc7280071d3dca6810c011bba71c8381 /app
parent02b9f0c2e86c765a3e3c2a03337337ca77f230f3 (diff)
downloadredmine-2a154205ed05f6900495ccc39062c32b0775bab1.tar.gz
redmine-2a154205ed05f6900495ccc39062c32b0775bab1.zip
MailHandler.safe_receive does not output any error log (#30457).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18066 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rwxr-xr-xapp/models/mail_handler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb
index 534e2daef..2e7442879 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