From a0c8f51110361990f0873578b689458246f646ad Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Sat, 24 Oct 2020 20:04:58 +0200 Subject: [PATCH] bugfix --- v2/pkg/executer/executer_http.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/v2/pkg/executer/executer_http.go b/v2/pkg/executer/executer_http.go index 1ce34170..5f0ccbb6 100644 --- a/v2/pkg/executer/executer_http.go +++ b/v2/pkg/executer/executer_http.go @@ -457,12 +457,11 @@ func (e *HTTPExecuter) handleHTTP(reqURL string, request *requests.HTTPRequest, if resp != nil { resp.Body.Close() } + e.traceLog.Request(e.template.ID, reqURL, "http", err) return err } - e.traceLog.Request(e.template.ID, reqURL, "http", err) - return err + e.traceLog.Request(e.template.ID, reqURL, "http", nil) } - e.traceLog.Request(e.template.ID, reqURL, "http", nil) } duration := time.Since(timeStart)