Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only apply log tags if the logger supports it

  • Loading branch information...
commit 152e3ac3d2b80dbb4557a4fb8039ab4e58f36ca5 1 parent 1dbe4ba
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/rack/logger.rb
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.