mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Use debug? query method on httplog initializer check (#35833)
This commit is contained in:
@@ -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|
|
||||
|
||||
Reference in New Issue
Block a user