1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #15816 from DNNX/log-subscriber-add-debug-check

Add `logger.debug?` guard to `ActionMailer::LogSubscriber#process`
This commit is contained in:
Rafael Mendonça França 2014-06-19 13:25:35 -03:00
commit 21a49ffe98

View file

@ -21,6 +21,7 @@ module ActionMailer
# An email was generated.
def process(event)
return unless logger.debug?
mailer = event.payload[:mailer]
action = event.payload[:action]
debug("\n#{mailer}##{action}: processed outbound mail in #{event.duration.round(1)}ms")