Permalink
Browse files

Only apply log tags if the logger supports it

  • Loading branch information...
1 parent 8800aae commit 08ca48379e233dc7ca5186bfa0933648c2d84a25 @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 08ca483

Please sign in to comment.