Use debug? query method on httplog initializer check (#35833)
This commit is contained in:
parent
567f337db3
commit
36974aaa99
1 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Disable httplog in production unless log_level is `debug`
|
||||
if !Rails.env.production? || Rails.configuration.log_level == :debug
|
||||
# Disable in production unless log level is `debug`
|
||||
if Rails.env.local? || Rails.logger.debug?
|
||||
require 'httplog'
|
||||
|
||||
HttpLog.configure do |config|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue