From 6251ff28e3e9a1afcb7159f516c24417c3430cd6 Mon Sep 17 00:00:00 2001 From: Eduard Marbach Date: Wed, 30 Oct 2024 15:14:01 +0100 Subject: [PATCH] chore: update logs --- main.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 925bb06..fe730fa 100644 --- a/main.go +++ b/main.go @@ -60,9 +60,8 @@ func buildMetricList(reader io.Reader) []metricMapping { headersLen := len(headers) dataLen := len(data) - log.Info().Msgf("Extracted %d headers which will be extracted", headersLen) - log.Info().Msgf("Following headers will be used: %s", headers) - log.Info().Msgf("Extracted %d data lines", dataLen) + log.Info().Msgf("Found %d headers, %d data lines", headersLen, dataLen) + log.Debug().Msgf("Headers: %s", headers) coreIndices := []int{} cpuIndices := []int{} @@ -575,7 +574,7 @@ func parseConfiguration() { func main() { zerolog.SetGlobalLevel(zerolog.InfoLevel) - fmt.Println("Prometheus turbostat exporter - created by BlackDark") + fmt.Println("Prometheus turbostat exporter - created by BlackDark (https://github.com/BlackDark/prometheus_turbotstat_exporter)") parseConfiguration() reader := executeProgram(0)