Use `debug?` query method on httplog initializer check (#35833)

pull/36096/head
Matt Jankowski 3 months ago committed by Claire
parent 567f337db3
commit 36974aaa99

@ -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…
Cancel
Save