1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #22077 from obduk/clean-up-logs

Remove newlines from start of logs
This commit is contained in:
Kasper Timm Hansen 2015-11-19 12:23:25 +01:00
commit f21743b5bc

View file

@ -8,7 +8,7 @@ module ActionMailer
def deliver(event)
info do
recipients = Array(event.payload[:to]).join(', ')
"\nSent mail to #{recipients} (#{event.duration.round(1)}ms)"
"Sent mail to #{recipients} (#{event.duration.round(1)}ms)"
end
debug { event.payload[:mail] }
@ -16,7 +16,7 @@ module ActionMailer
# An email was received.
def receive(event)
info { "\nReceived mail (#{event.duration.round(1)}ms)" }
info { "Received mail (#{event.duration.round(1)}ms)" }
debug { event.payload[:mail] }
end
@ -25,7 +25,7 @@ module ActionMailer
debug do
mailer = event.payload[:mailer]
action = event.payload[:action]
"\n#{mailer}##{action}: processed outbound mail in #{event.duration.round(1)}ms"
"#{mailer}##{action}: processed outbound mail in #{event.duration.round(1)}ms"
end
end