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:
parent
24705014b8
commit
b0ab8dc0b2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue