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:
commit
21a49ffe98
1 changed files with 1 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue