diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-11-19 12:23:25 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-11-19 12:23:25 +0100 |
commit | f21743b5bccc2cd0de6b4a633283830839bba647 (patch) | |
tree | d10141c2b784d3a231f1977e4198f9a1ffda0456 /actionmailer | |
parent | 58df2f4b4abcce0b698c2540da215a565c24cbc9 (diff) | |
parent | 5e4f82a5f39054b27232fbf0840496ab5ddb06a7 (diff) | |
download | rails-f21743b5bccc2cd0de6b4a633283830839bba647.tar.gz rails-f21743b5bccc2cd0de6b4a633283830839bba647.tar.bz2 rails-f21743b5bccc2cd0de6b4a633283830839bba647.zip |
Merge pull request #22077 from obduk/clean-up-logs
Remove newlines from start of logs
Diffstat (limited to 'actionmailer')
-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 |