diff options
author | Owen Davies <git@obduk.com> | 2015-10-26 14:58:18 +0000 |
---|---|---|
committer | Owen Davies <git@obduk.com> | 2015-10-26 14:58:18 +0000 |
commit | 5e4f82a5f39054b27232fbf0840496ab5ddb06a7 (patch) | |
tree | 6eebee81e2c77335ca6e2d0f05514830a0df7d07 /actionmailer/lib | |
parent | 6616cb866eaf68e44dfd3324ffd543c9ce16869c (diff) | |
download | rails-5e4f82a5f39054b27232fbf0840496ab5ddb06a7.tar.gz rails-5e4f82a5f39054b27232fbf0840496ab5ddb06a7.tar.bz2 rails-5e4f82a5f39054b27232fbf0840496ab5ddb06a7.zip |
Remove newlines from start of logs
Currently if using a single line logger, this causes the time stamp and
log message to be on separate lines which is not common to how most
other logging works.
Diffstat (limited to 'actionmailer/lib')
-rw-r--r-- | actionmailer/lib/action_mailer/log_subscriber.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionmailer/lib/action_mailer/log_subscriber.rb b/actionmailer/lib/action_mailer/log_subscriber.rb index 7e9d916b66..2867bf90fb 100644 --- a/actionmailer/lib/action_mailer/log_subscriber.rb +++ b/actionmailer/lib/action_mailer/log_subscriber.rb @@ -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 |