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:
parent
1dbe4baef5
commit
152e3ac3d2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue