@cryptotaxi247 / netdata-1 / commits / 20a511973

chore(go.d): disable redis lib logging (#21344)

Ilya Mashchenko committed Nov 24, 2025 at 10:55 UTC 20a511973291218c9625161e2932334bc004d44f
1 file changed +6
src/go/plugin/go.d/collector/redis/collector.go
+6
@@ -22,7 +22,13 @@ import (
22 //go:embed "config_schema.json"
23 var configSchema string
24
25 +type noopLogger struct{}
26 +
27 +func (noopLogger) Printf(context.Context, string, ...any) {}
28 +
29 func init() {
30 + redis.SetLogger(noopLogger{})
31 +
32 module.Register("redis", module.Creator{
33 JobConfigSchema: configSchema,
34 Create: func() module.Module { return New() },