diff --git a/prober/http.go b/prober/http.go index 5e452cd9..13b36eff 100644 --- a/prober/http.go +++ b/prober/http.go @@ -647,7 +647,7 @@ func ProbeHTTP(ctx context.Context, target string, module config.Module, registr level.Error(logger).Log("msg", "Final request was over SSL") success = false } - } else if httpConfig.FailIfNotSSL { + } else if httpConfig.FailIfNotSSL && success { level.Error(logger).Log("msg", "Final request was not over SSL") success = false }