Skip to content

Commit

Permalink
Fixed that some mail handler log messages are not prepended with "Mai…
Browse files Browse the repository at this point in the history
…lHandler:" (#21226).

git-svn-id: http://svn.redmine.org/redmine/trunk@14880 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Nov 14, 2015
1 parent 2e0da3e commit 41c379f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/mail_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def self.receive(raw_mail, options={})
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

Expand Down Expand Up @@ -176,7 +176,7 @@ def dispatch
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
Expand Down

0 comments on commit 41c379f

Please sign in to comment.