Skip to content

Commit

Permalink
more complete logging of request parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Apr 12, 2018
1 parent f01bdde commit 0cfe25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func MakeJSONRequest(method string, url string, body string, jsonStruct interfac
return resp, err
}

l = log.WithField("body", string(jsonBody)).WithField("status", resp.StatusCode)
l = l.WithField("body", string(jsonBody)).WithField("status", resp.StatusCode)

// error if we got a non-200
if resp.StatusCode != http.StatusOK {
Expand Down

0 comments on commit 0cfe25a

Please sign in to comment.