diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-24 14:07:10 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2012-09-24 14:07:10 -0700 |
commit | 152e3ac3d2b80dbb4557a4fb8039ab4e58f36ca5 (patch) | |
tree | e1cce52a5799108dc96ee34399d2bcc10ac46877 | |
parent | 1dbe4baef5120dce845c46abe0014abf64e4b0ca (diff) | |
download | rails-152e3ac3d2b80dbb4557a4fb8039ab4e58f36ca5.tar.gz rails-152e3ac3d2b80dbb4557a4fb8039ab4e58f36ca5.tar.bz2 rails-152e3ac3d2b80dbb4557a4fb8039ab4e58f36ca5.zip |
Only apply log tags if the logger supports it
-rw-r--r-- | railties/lib/rails/rack/logger.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/rack/logger.rb b/railties/lib/rails/rack/logger.rb index 89de10c83d..9ff94e74b3 100644 --- a/railties/lib/rails/rack/logger.rb +++ b/railties/lib/rails/rack/logger.rb @@ -10,7 +10,7 @@ module Rails end def call(env) - if @tags + if @tags && Rails.logger.respond_to?(:tagged) Rails.logger.tagged(compute_tags(env)) { call_app(env) } else call_app(env) |