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

This commit is contained in:
Matt Jankowski 2025-08-20 08:06:35 -04:00 committed by GitHub
parent 8268323d7f
commit 50cf327819
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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