lib/action_mailer/log_subscriber.rb in actionmailer-6.0.0.beta1 vs lib/action_mailer/log_subscriber.rb in actionmailer-6.0.0.beta2
- old
+ new
@@ -8,14 +8,13 @@
class LogSubscriber < ActiveSupport::LogSubscriber
# An email was delivered.
def deliver(event)
info do
perform_deliveries = event.payload[:perform_deliveries]
- recipients = Array(event.payload[:to]).join(", ")
if perform_deliveries
- "Sent mail to #{recipients} (#{event.duration.round(1)}ms)"
+ "Delivered mail #{event.payload[:message_id]} (#{event.duration.round(1)}ms)"
else
- "Skipped sending mail to #{recipients} as `perform_deliveries` is false"
+ "Skipped delivery of mail #{event.payload[:message_id]} as `perform_deliveries` is false"
end
end
debug { event.payload[:mail] }
end