mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Use debug?
query method on httplog initializer check (#35833)
This commit is contained in:
parent
8268323d7f
commit
50cf327819
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
# Disable httplog in production unless log_level is `debug`
|
# Disable in production unless log level is `debug`
|
||||||
if !Rails.env.production? || Rails.configuration.log_level == :debug
|
if Rails.env.local? || Rails.logger.debug?
|
||||||
require 'httplog'
|
require 'httplog'
|
||||||
|
|
||||||
HttpLog.configure do |config|
|
HttpLog.configure do |config|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user