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:
commit
f21743b5bc
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue