Skip to content

Commit

Permalink
Log the payloads and headers
Browse files Browse the repository at this point in the history
  • Loading branch information
drapergeek committed Dec 12, 2014
1 parent 7205e33 commit b45aa9f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ source "https://rubygems.org"

ruby "2.1.5"

gem "awesome_print"
gem "bourbon", "~> 4.0.2"
gem "coffee-rails"
gem "delayed_job_active_record"
Expand Down Expand Up @@ -30,7 +31,6 @@ group :development do
end

group :development, :test do
gem "awesome_print"
gem "byebug"
gem "dotenv-rails"
gem "factory_girl_rails"
Expand All @@ -49,4 +49,5 @@ group :test do
end

group :staging, :production do
gem "rails_12factor"
end
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ GEM
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.1)
loofah (~> 2.0)
rails_12factor (0.0.3)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.2)
rails_stdout_logging (0.0.3)
railties (4.2.0.rc2)
actionpack (= 4.2.0.rc2)
activesupport (= 4.2.0.rc2)
Expand Down Expand Up @@ -280,6 +285,7 @@ DEPENDENCIES
pry-rails
rack-timeout
rails (= 4.2.0.rc2)
rails_12factor
recipient_interceptor
rspec-rails (~> 3.0.0)
sass-rails!
Expand Down
2 changes: 2 additions & 0 deletions app/services/payload_parser.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
class PayloadParser
def initialize(payload, headers)
Rails.logger.ap(payload, :info)
Rails.logger.ap(headers, :info)
@payload = payload
@headers = headers
end
Expand Down

0 comments on commit b45aa9f

Please sign in to comment.