From 41c379fb783f00247cb6303fe8278ded763cff8a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 14 Nov 2015 11:34:45 +0000 Subject: [PATCH] Fixed that some mail handler log messages are not prepended with "MailHandler:" (#21226). git-svn-id: http://svn.redmine.org/redmine/trunk@14880 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/mail_handler.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 99462179e..0c3d34c41 100644 --- 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 "An unexpected error occurred when receiving email: #{e.message}" if logger + logger.error "MailHandler: an unexpected error occurred when receiving email: #{e.message}" if logger return false end @@ -176,7 +176,7 @@ class MailHandler < ActionMailer::Base end rescue ActiveRecord::RecordInvalid => e # TODO: send a email to the user - logger.error e.message if logger + logger.error "MailHandler: #{e.message}" if logger false rescue MissingInformation => e logger.error "MailHandler: missing information from #{user}: #{e.message}" if logger -- 2.39.5