Changeset 8781
- Timestamp:
- 02/02/08 05:32:15 (7 months ago)
- Files:
-
- trunk/actionmailer/CHANGELOG (modified) (1 diff)
- trunk/actionmailer/lib/action_mailer/base.rb (modified) (1 diff)
- trunk/actionmailer/test/mail_service_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionmailer/CHANGELOG
r8622 r8781 1 1 *SVN* 2 3 * Less verbose mail logging: just recipients for :info log level; the whole email for :debug only. #8000 [iaddict, Tarmo TÀnav] 2 4 3 5 * Updated TMail to version 1.2.1 [raasdnil] trunk/actionmailer/lib/action_mailer/base.rb
r8683 r8781 469 469 def deliver!(mail = @mail) 470 470 raise "no mail object available for delivery!" unless mail 471 logger.info "Sent mail:\n #{mail.encoded}" unless logger.nil? 471 unless logger.nil? 472 logger.info "Sent mail to #{recipients.to_a.join(', ')}" 473 logger.debug "\n#{mail.encoded}" 474 end 472 475 473 476 begin trunk/actionmailer/test/mail_service_test.rb
r8620 r8781 535 535 mail = TestMailer.create_signed_up(@recipient) 536 536 logger = mock() 537 logger.expects(:info).with("Sent mail:\n #{mail.encoded}") 537 logger.expects(:info).with("Sent mail to #{@recipient}") 538 logger.expects(:debug).with("\n#{mail.encoded}") 538 539 TestMailer.logger = logger 539 540 TestMailer.deliver_signed_up(@recipient)