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

Use join without default separator

Use lstrip method
This commit is contained in:
Piotr Niełacny 2012-07-19 14:16:03 +02:00
parent 24705014b8
commit b0ab8dc0b2

View file

@ -16,7 +16,7 @@ module ActiveSupport
module Formatter # :nodoc:
# This method is invoked when a log event occurs
def call(severity, timestamp, progname, msg)
super(severity, timestamp, progname, "#{tags_text}#{msg}")
super(severity, timestamp, progname, "#{tags_text} #{msg}".lstrip)
end
def clear!
@ -31,7 +31,7 @@ module ActiveSupport
def tags_text
tags = current_tags
if tags.any?
tags.collect { |tag| "[#{tag}] " }.join
tags.collect { |tag| "[#{tag}]" }.join(' ')
end
end
end