From: Brian Brazil Date: Wed, 2 Sep 2020 16:14:20 +0000 (+0100) Subject: Log http version string we compare with, rather than float we put in metric. (#659) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=10b04fc9fd220343938233c5586556f7e84a2f45;p=blackbox_exporter.git Log http version string we compare with, rather than float we put in metric. (#659) See #658 Signed-off-by: Brian Brazil --- diff --git a/prober/http.go b/prober/http.go index bcbbf25..125b508 100644 --- a/prober/http.go +++ b/prober/http.go @@ -523,7 +523,7 @@ func ProbeHTTP(ctx context.Context, target string, module config.Module, registr } } if !found { - level.Error(logger).Log("msg", "Invalid HTTP version number", "version", httpVersionNumber) + level.Error(logger).Log("msg", "Invalid HTTP version number", "version", resp.Proto) success = false } }