Correct formatting of build_context log message at startup (#700)
authorBrian Candler <b.candler@pobox.com>
Mon, 12 Oct 2020 12:55:25 +0000 (13:55 +0100)
committerGitHub <noreply@github.com>
Mon, 12 Oct 2020 12:55:25 +0000 (13:55 +0100)
Fixes #699

Signed-off-by: Brian Candler <b.candler@pobox.com>
main.go

diff --git a/main.go b/main.go
index 1499b2e4f33c511d1c36ad3b44bf0dadef17f367..0fab28d95518790a559c867ea503c84b8a51a492 100644 (file)
--- a/main.go
+++ b/main.go
@@ -210,7 +210,7 @@ func run() int {
        rh := &resultHistory{maxResults: *historyLimit}
 
        level.Info(logger).Log("msg", "Starting blackbox_exporter", "version", version.Info())
-       level.Info(logger).Log("msg", "Build context", version.BuildContext())
+       level.Info(logger).Log("build_context", version.BuildContext())
 
        if err := sc.ReloadConfig(*configFile); err != nil {
                level.Error(logger).Log("msg", "Error loading config", "err", err)