Since version 2.2.1 was released (with PR #71 of which I am the author), the log.level flag has no effects and all logs are printed regardless of there level
I can’t figure out where the issue is and I can’t reproduce with this simple test code:
promlogConfig.Level is correctly set to the log level passed on the command line (or info by default).
Adding level.NewFilter(logger, level.AllowInfo()) after line 129 in ssl_exporter.go seems to work and correctly filter debug messages, but setting the promlog.Config manually also has no effect:
Since version 2.2.1 was released (with PR #71 of which I am the author), the
log.level
flag has no effects and all logs are printed regardless of there levelI can’t figure out where the issue is and I can’t reproduce with this simple test code:
promlogConfig.Level
is correctly set to the log level passed on the command line (orinfo
by default).Adding
level.NewFilter(logger, level.AllowInfo())
after line 129 in ssl_exporter.go seems to work and correctly filter debug messages, but setting thepromlog.Config
manually also has no effect:Any idea with this happens in ssl_exporter?