Skip to content
This repository has been archived by the owner on Feb 23, 2020. It is now read-only.

Commit

Permalink
Log response summaries for error responses
Browse files Browse the repository at this point in the history
For all response codes >= 400, even when there is no exception involved.

fixes #61
  • Loading branch information
jordan-brough authored and Jeff Dutil committed Jan 8, 2015
1 parent f7623d9 commit 852f5c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/spree/wombat/webhook_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ def render_responder(responder)
error_notifier.call(responder)
end
end
if responder.code >= 400
logger.info "responder_summary=#{responder.summary.inspect}"
end
render(
json: ResponderSerializer.new(responder, root: false),
status: responder.code
Expand Down

0 comments on commit 852f5c1

Please sign in to comment.