Changeset 8840
- Timestamp:
- 02/10/08 01:11:45 (5 months ago)
- Files:
-
- branches/2-0-stable/actionmailer/CHANGELOG (modified) (1 diff)
- branches/2-0-stable/actionmailer/lib/action_mailer/base.rb (modified) (1 diff)
- branches/2-0-stable/actionmailer/test/mail_service_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2-0-stable/actionmailer/CHANGELOG
r8623 r8840 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] branches/2-0-stable/actionmailer/lib/action_mailer/base.rb
r8212 r8840 464 464 def deliver!(mail = @mail) 465 465 raise "no mail object available for delivery!" unless mail 466 logger.info "Sent mail:\n #{mail.encoded}" unless logger.nil? 466 unless logger.nil? 467 logger.info "Sent mail to #{recipients.to_a.join(', ')}" 468 logger.debug "\n#{mail.encoded}" 469 end 467 470 468 471 begin branches/2-0-stable/actionmailer/test/mail_service_test.rb
r8621 r8840 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)