diff options
author | Piotr Niełacny <piotr.nielacny@gmail.com> | 2012-07-19 14:16:03 +0200 |
---|---|---|
committer | Piotr Niełacny <piotr.nielacny@gmail.com> | 2012-07-20 08:16:58 +0200 |
commit | b0ab8dc0b2b0f580ffe5ac9ff57fd13152e18577 (patch) | |
tree | c07b23286c6555d6bb2282699954a7148e8248db /activesupport/lib | |
parent | 24705014b845cc0202a1fd8866e9981af742453f (diff) | |
download | rails-b0ab8dc0b2b0f580ffe5ac9ff57fd13152e18577.tar.gz rails-b0ab8dc0b2b0f580ffe5ac9ff57fd13152e18577.tar.bz2 rails-b0ab8dc0b2b0f580ffe5ac9ff57fd13152e18577.zip |
Use join without default separator
Use lstrip method
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/tagged_logging.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/tagged_logging.rb b/activesupport/lib/active_support/tagged_logging.rb index 5e080df518..9cd8ac36bc 100644 --- a/activesupport/lib/active_support/tagged_logging.rb +++ b/activesupport/lib/active_support/tagged_logging.rb @@ -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 |