Skip to content

Commit

Permalink
add the request to the error
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Feb 19, 2014
1 parent 273fbf4 commit f7ad164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/neography/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def handle_4xx_500_response(response, code, body, path, query_body)
message = parsed_body["message"]
stacktrace = parsed_body["stacktrace"]

@logger.error "#{response.dump} error: #{body}" if @log_enabled
@logger.error "#{response.dump} error: #{body} request: #{request}" if @log_enabled
raise_errors(code, parsed_body["exception"], message, stacktrace, request, index)
end

Expand Down

0 comments on commit f7ad164

Please sign in to comment.