Permalink
Browse files

Only apply log tags if the logger supports it

  • Loading branch information...
1 parent 1dbe4ba commit 152e3ac3d2b80dbb4557a4fb8039ab4e58f36ca5 @jeremy jeremy committed Sep 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/rack/logger.rb
@@ -10,7 +10,7 @@ def initialize(app, tags=nil)
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)

0 comments on commit 152e3ac

Please sign in to comment.