diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-19 21:34:42 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-19 21:34:59 +0100 |
commit | 848d6cd46b93ef9b1e755449a1de7cee56e7e115 (patch) | |
tree | c4a0fb74fbee078976ca79e34492498c48a3f871 /actionmailer/lib/action_mailer/railties/subscriber.rb | |
parent | d8c30723aad943da20fed36cceedba6225122a3a (diff) | |
download | rails-848d6cd46b93ef9b1e755449a1de7cee56e7e115.tar.gz rails-848d6cd46b93ef9b1e755449a1de7cee56e7e115.tar.bz2 rails-848d6cd46b93ef9b1e755449a1de7cee56e7e115.zip |
Mail should log when raise_delivery_methods is false.
Diffstat (limited to 'actionmailer/lib/action_mailer/railties/subscriber.rb')
-rw-r--r-- | actionmailer/lib/action_mailer/railties/subscriber.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionmailer/lib/action_mailer/railties/subscriber.rb b/actionmailer/lib/action_mailer/railties/subscriber.rb index af9c477237..cff852055c 100644 --- a/actionmailer/lib/action_mailer/railties/subscriber.rb +++ b/actionmailer/lib/action_mailer/railties/subscriber.rb @@ -3,13 +3,13 @@ module ActionMailer class Subscriber < Rails::Subscriber def deliver(event) recipients = Array(event.payload[:to]).join(', ') - info("Sent mail to #{recipients} (%1.fms)" % event.duration) - debug("\n#{event.payload[:mail]}") + info("\nSent mail to #{recipients} (%1.fms)" % event.duration) + debug(event.payload[:mail]) end def receive(event) - info("Received mail (%.1fms)" % event.duration) - debug("\n#{event.payload[:mail]}") + info("\nReceived mail (%.1fms)" % event.duration) + debug(event.payload[:mail]) end def logger |