Skip to content

Update logging

Update logging #2195

Triggered via pull request September 4, 2024 08:59
Status Failure
Total duration 42s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: node_exporter.go#L221
cannot use logger (variable of type *slog.Logger) as "github.com/go-kit/log".Logger value in argument to web.ListenAndServe: *slog.Logger does not implement "github.com/go-kit/log".Logger (wrong type for method Log)
lint: node_exporter.go#L222
cannot use err (variable of type error) as string value in argument to logger.Error (typecheck)
lint: collector/cpu_linux_test.go#L38
undefined: log
lint: collector/diskstats_linux_test.go#L320
undefined: log
lint: collector/ethtool_linux_test.go#L373
undefined: log
lint: collector/filesystem_linux_test.go#L85
undefined: log
lint: collector/filesystem_linux_test.go#L114
undefined: log
lint: collector/filesystem_linux_test.go#L142
undefined: log
lint: collector/ipvs_linux_test.go#L116
undefined: log
lint: collector/ipvs_linux_test.go#L184
undefined: log