Skip to content

Commit

Permalink
chore: update logs
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackDark committed Oct 30, 2024
1 parent d051275 commit 6251ff2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 6251ff2

Please sign in to comment.