Skip to content

Commit

Permalink
Add logging for outgoing http requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Oct 2, 2016
1 parent b36197c commit 4909bbf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ gem 'paperclip', '~> 4.3'
gem 'paperclip-av-transcoder'

gem 'http'
gem 'httplog'
gem 'addressable'
gem 'nokogiri'
gem 'link_header'
Expand Down
4 changes: 4 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.10.0)
colorize (0.8.1)
concurrent-ruby (1.0.2)
connection_pool (2.2.0)
crack (0.4.3)
Expand Down Expand Up @@ -131,6 +132,8 @@ GEM
domain_name (~> 0.5)
http-form_data (1.0.1)
http_parser.rb (0.6.0)
httplog (0.3.2)
colorize
i18n (0.7.0)
jbuilder (2.6.0)
activesupport (>= 3.0.0, < 5.1)
Expand Down Expand Up @@ -360,6 +363,7 @@ DEPENDENCIES
hiredis
htmlentities
http
httplog
jbuilder (~> 2.0)
jquery-rails
letter_opener
Expand Down
3 changes: 0 additions & 3 deletions app/assets/javascripts/about.coffee

This file was deleted.

3 changes: 3 additions & 0 deletions config/initializers/httplog.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
HttpLog.options[:logger] = Rails.logger
HttpLog.options[:color] = { color: :yellow }
HttpLog.options[:compact_log] = true

0 comments on commit 4909bbf

Please sign in to comment.