diff --git a/exthttpcheck/check.go b/exthttpcheck/check.go index 0baf43f..487930e 100644 --- a/exthttpcheck/check.go +++ b/exthttpcheck/check.go @@ -250,6 +250,9 @@ func requestWorker(executionRunData *ExecutionRunData, state *HTTPCheckState, ch responseConstraintFulfilled := strings.Contains(bodyString, state.ResponsesContains) metricMap["response_constraints_fulfilled"] = strconv.FormatBool(responseConstraintFulfilled) responseBodyWasSuccessful = responseConstraintFulfilled + if !(responseConstraintFulfilled) { + log.Trace().Str("response_body", bodyString).Str("expected_string", state.ResponsesContains).Msg("response body does not contain expected string") + } } } }