From 5001dea502c3e2d0cf277c740490518f4b50eb9b Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Thu, 23 Oct 2025 11:41:31 +0200 Subject: [PATCH] modified startup log output a little --- cmd/root.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index e8211df..f1943b3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -38,10 +38,13 @@ func Run() { promhttp.HandlerOpts{}, )) - slog.Info("io-exporter starting up", "version", Version) - slog.Info(" serving metrics", "host", "localhost", "port", conf.Port) - slog.Info(" test setup", "file", conf.File, "labels", strings.Join(conf.Label, ",")) - slog.Info(" measuring", "read", conf.ReadMode, "write", conf.WriteMode, "timeout(s)", conf.Timeout) + slog.Info(" ╭──") + slog.Info(" │ io-exporter starting up", "version", Version) + slog.Info(" │ serving metrics", "host", "localhost", "port", conf.Port) + slog.Info(" │ test setup", "file", conf.File, "labels", strings.Join(conf.Label, ",")) + slog.Info(" │ measuring", "read", conf.ReadMode, "write", conf.WriteMode, "timeout(s)", conf.Timeout) + slog.Info(" │ debugging", "enabled", conf.Debug) + slog.Info(" ╰──") if err := http.ListenAndServe(fmt.Sprintf(":%d", conf.Port), nil); err != nil { log.Fatal(err)