mirror of
https://codeberg.org/scip/io-exporter.git
synced 2025-12-17 20:41:00 +01:00
modified startup log output a little
This commit is contained in:
11
cmd/root.go
11
cmd/root.go
@@ -38,10 +38,13 @@ func Run() {
|
|||||||
promhttp.HandlerOpts{},
|
promhttp.HandlerOpts{},
|
||||||
))
|
))
|
||||||
|
|
||||||
slog.Info("io-exporter starting up", "version", Version)
|
slog.Info(" ╭──")
|
||||||
slog.Info(" serving metrics", "host", "localhost", "port", conf.Port)
|
slog.Info(" │ io-exporter starting up", "version", Version)
|
||||||
slog.Info(" test setup", "file", conf.File, "labels", strings.Join(conf.Label, ","))
|
slog.Info(" │ serving metrics", "host", "localhost", "port", conf.Port)
|
||||||
slog.Info(" measuring", "read", conf.ReadMode, "write", conf.WriteMode, "timeout(s)", conf.Timeout)
|
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 {
|
if err := http.ListenAndServe(fmt.Sprintf(":%d", conf.Port), nil); err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user