aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Durand <brian@embellishedvisions.com>2012-09-19 16:46:48 -0700
committerBrian Durand <brian@embellishedvisions.com>2012-09-19 16:46:48 -0700
commitd47fde6dcb018d56f01602cd11cff72d6b1af999 (patch)
treef3626a1404e3bbb3e07fc322ff0576c8ff204f14
parent19f0e37d7ae51c0a2b30f53127f68227ec55afec (diff)
downloadrails-d47fde6dcb018d56f01602cd11cff72d6b1af999.tar.gz
rails-d47fde6dcb018d56f01602cd11cff72d6b1af999.tar.bz2
rails-d47fde6dcb018d56f01602cd11cff72d6b1af999.zip
Fix ActionMailer::LogSubscriber to use the correct log level check.
-rw-r--r--actionmailer/lib/action_mailer/log_subscriber.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionmailer/lib/action_mailer/log_subscriber.rb b/actionmailer/lib/action_mailer/log_subscriber.rb
index fe1bca969c..3fe64759ac 100644
--- a/actionmailer/lib/action_mailer/log_subscriber.rb
+++ b/actionmailer/lib/action_mailer/log_subscriber.rb
@@ -1,14 +1,14 @@
module ActionMailer
class LogSubscriber < ActiveSupport::LogSubscriber
def deliver(event)
- return unless logger.debug?
+ return unless logger.info?
recipients = Array(event.payload[:to]).join(', ')
info("\nSent mail to #{recipients} (#{event.duration.round(1)}ms)")
debug(event.payload[:mail])
end
def receive(event)
- return unless logger.debug?
+ return unless logger.info?
info("\nReceived mail (#{event.duration.round(1)}ms)")
debug(event.payload[:mail])
end