Skip to content

Commit

Permalink
Merge pull request #204 from kaleido-io/log-tweak
Browse files Browse the repository at this point in the history
Remove newline between fields in log
  • Loading branch information
peterbroadhurst authored Mar 1, 2022
2 parents e5428b4 + a7615c5 commit 6f5a277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/contractgateway/rest2eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ func (r *rest2eth) lookupTransaction(res http.ResponseWriter, req *http.Request,
func (r *rest2eth) restAsyncReply(res http.ResponseWriter, req *http.Request, asyncResponse messages.WebhookReply) {
resBytes, _ := json.Marshal(asyncResponse)
status := 202 // accepted
log.Infof("<-- %s %s [%d]:\n%s", req.Method, req.URL, status, string(resBytes))
log.Infof("<-- %s %s [%d]: %s", req.Method, req.URL, status, string(resBytes))
log.Debugf("<-- %s", resBytes)
res.Header().Set("Content-Type", "application/json")
res.WriteHeader(status)
Expand Down

0 comments on commit 6f5a277

Please sign in to comment.