mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 07:32:02 +01:00
Add logging for outgoing http requests
This commit is contained in:
parent
b36197c307
commit
4909bbf415
4 changed files with 8 additions and 3 deletions
1
Gemfile
1
Gemfile
|
@ -19,6 +19,7 @@ gem 'paperclip', '~> 4.3'
|
||||||
gem 'paperclip-av-transcoder'
|
gem 'paperclip-av-transcoder'
|
||||||
|
|
||||||
gem 'http'
|
gem 'http'
|
||||||
|
gem 'httplog'
|
||||||
gem 'addressable'
|
gem 'addressable'
|
||||||
gem 'nokogiri'
|
gem 'nokogiri'
|
||||||
gem 'link_header'
|
gem 'link_header'
|
||||||
|
|
|
@ -74,6 +74,7 @@ GEM
|
||||||
coffee-script-source
|
coffee-script-source
|
||||||
execjs
|
execjs
|
||||||
coffee-script-source (1.10.0)
|
coffee-script-source (1.10.0)
|
||||||
|
colorize (0.8.1)
|
||||||
concurrent-ruby (1.0.2)
|
concurrent-ruby (1.0.2)
|
||||||
connection_pool (2.2.0)
|
connection_pool (2.2.0)
|
||||||
crack (0.4.3)
|
crack (0.4.3)
|
||||||
|
@ -131,6 +132,8 @@ GEM
|
||||||
domain_name (~> 0.5)
|
domain_name (~> 0.5)
|
||||||
http-form_data (1.0.1)
|
http-form_data (1.0.1)
|
||||||
http_parser.rb (0.6.0)
|
http_parser.rb (0.6.0)
|
||||||
|
httplog (0.3.2)
|
||||||
|
colorize
|
||||||
i18n (0.7.0)
|
i18n (0.7.0)
|
||||||
jbuilder (2.6.0)
|
jbuilder (2.6.0)
|
||||||
activesupport (>= 3.0.0, < 5.1)
|
activesupport (>= 3.0.0, < 5.1)
|
||||||
|
@ -360,6 +363,7 @@ DEPENDENCIES
|
||||||
hiredis
|
hiredis
|
||||||
htmlentities
|
htmlentities
|
||||||
http
|
http
|
||||||
|
httplog
|
||||||
jbuilder (~> 2.0)
|
jbuilder (~> 2.0)
|
||||||
jquery-rails
|
jquery-rails
|
||||||
letter_opener
|
letter_opener
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# Place all the behaviors and hooks related to the matching controller here.
|
|
||||||
# All this logic will automatically be available in application.js.
|
|
||||||
# You can use CoffeeScript in this file: http://coffeescript.org/
|
|
3
config/initializers/httplog.rb
Normal file
3
config/initializers/httplog.rb
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
HttpLog.options[:logger] = Rails.logger
|
||||||
|
HttpLog.options[:color] = { color: :yellow }
|
||||||
|
HttpLog.options[:compact_log] = true
|
Loading…
Reference in a new issue