Skip to content

Commit

Permalink
Stop http-debug from exiting on dump error
Browse files Browse the repository at this point in the history
Closes #1402
  • Loading branch information
berndhartzer authored and na-- committed May 7, 2020
1 parent 8d1a038 commit 9586f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/netext/httpext/httpdebug_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (t httpDebugTransport) RoundTrip(req *http.Request) (*http.Response, error)
func (t httpDebugTransport) debugRequest(req *http.Request) {
dump, err := httputil.DumpRequestOut(req, t.httpDebugOption == "full")
if err != nil {
logrus.Fatal(err) //TODO: fix...
logrus.Error(err)
}
fmt.Printf("Request:\n%s\n", dump) //TODO: fix...
}
Expand All @@ -59,7 +59,7 @@ func (t httpDebugTransport) debugResponse(res *http.Response) {
if res != nil {
dump, err := httputil.DumpResponse(res, t.httpDebugOption == "full")
if err != nil {
logrus.Fatal(err) //TODO: fix...
logrus.Error(err)
}
fmt.Printf("Response:\n%s\n", dump) //TODO: fix...
}
Expand Down

0 comments on commit 9586f2f

Please sign in to comment.