mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
13 lines
290 B
Ruby
13 lines
290 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Disable in production unless log level is `debug`
|
|
if Rails.env.local? || Rails.logger.debug?
|
|
require 'httplog'
|
|
|
|
HttpLog.configure do |config|
|
|
config.logger = Rails.logger
|
|
config.color = { color: :yellow }
|
|
config.compact_log = true
|
|
end
|
|
end
|