Skip to content

Commit

Permalink
Fix logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
utkuozdemir committed Jun 12, 2021
1 parent 72aed57 commit f2d3010
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/nvidia_gpu_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ func main() {
kingpin.HelpFlag.Short('h')
kingpin.Parse()

logConfig := promlog.Config{}
logger := promlog.New(&logConfig)

logger := promlog.New(promlogConfig)
e, err := exporter.New(exporter.DefaultPrefix, *nvidiaSmiCommand, *queryFieldNames, logger)
if err != nil {
_ = level.Error(logger).Log("msg", "Error on creating exporter", "err", err)
Expand Down

0 comments on commit f2d3010

Please sign in to comment.