Commit 69bc037b authored by Simon Schürg's avatar Simon Schürg 🚀
Browse files

Print HTTP responses only on error

parent 6e428d07
......@@ -19,7 +19,8 @@ func FatalOnError(err error) {
// LogRestyResp logs a resty http response in only two lines
func LogRestyResp(resp *resty.Response, err error) {
exitOnErr := true
verbose := true
// Print only on http client errors and error http responses
verbose := false
if err != nil {
fmt.Println(err)
if exitOnErr {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment