Skip to content

Commit

Permalink
Merge pull request #1080 from adicarlo/20200422-logging-fix
Browse files Browse the repository at this point in the history
remove spurious newline in logs
  • Loading branch information
brandur-stripe authored Apr 23, 2020
2 parents b363a1c + 65cbf63 commit 518daeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ func (s *BackendImplementation) NewRequest(method, path, key, contentType string
// the backend's HTTP client to execute the request and unmarshals the response
// into v. It also handles unmarshaling errors returned by the API.
func (s *BackendImplementation) Do(req *http.Request, body *bytes.Buffer, v LastResponseSetter) error {
s.LeveledLogger.Infof("Requesting %v %v%v\n", req.Method, req.URL.Host, req.URL.Path)
s.LeveledLogger.Infof("Requesting %v %v%v", req.Method, req.URL.Host, req.URL.Path)

if s.enableTelemetry {
select {
Expand Down Expand Up @@ -503,7 +503,7 @@ func (s *BackendImplementation) Do(req *http.Request, body *bytes.Buffer, v Last
return err
}

s.LeveledLogger.Debugf("Response: %s\n", string(resBody))
s.LeveledLogger.Debugf("Response: %s", string(resBody))

v.SetLastResponse(newAPIResponse(res, resBody))

Expand Down

0 comments on commit 518daeb

Please sign in to comment.