1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Only apply log tags if the logger supports it

This commit is contained in:
Jeremy Kemper 2012-09-24 14:07:10 -07:00
parent 1dbe4baef5
commit 152e3ac3d2

View file

@ -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)