From d47fde6dcb018d56f01602cd11cff72d6b1af999 Mon Sep 17 00:00:00 2001 From: Brian Durand Date: Wed, 19 Sep 2012 16:46:48 -0700 Subject: Fix ActionMailer::LogSubscriber to use the correct log level check. --- actionmailer/lib/action_mailer/log_subscriber.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionmailer/lib') 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 -- cgit v1.2.3