mirror of https://github.com/mastodon/mastodon
Disable `httplog` gem in production (#32776)
parent
933fa81baf
commit
d60ef3f17e
@ -1,7 +1,12 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# Disable httplog in production unless log_level is `debug`
|
||||||
|
if !Rails.env.production? || Rails.configuration.log_level == :debug
|
||||||
|
require 'httplog'
|
||||||
|
|
||||||
HttpLog.configure do |config|
|
HttpLog.configure do |config|
|
||||||
config.logger = Rails.logger
|
config.logger = Rails.logger
|
||||||
config.color = { color: :yellow }
|
config.color = { color: :yellow }
|
||||||
config.compact_log = true
|
config.compact_log = true
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue