Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
only log subject + addresse
Browse files Browse the repository at this point in the history
  • Loading branch information
Sydney Young committed Oct 13, 2015
1 parent 1d37bf5 commit b31fed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/setup_mail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# logging of automatically sent emails
if ENV['LOG_EMAILS']
class MailObserver
def self.delivered_mail(message)
Rails.logger.info "Sent #{message}"
def self.delivered_email(message)
Rails.logger.info "Sent #{message.subject} to #{message.to}"
end
end
ActionMailer::Base.register_observer(MailObserver)
Expand Down

0 comments on commit b31fed0

Please sign in to comment.