Skip to content

Commit 20a5119

Browse files
authored
chore(go.d): disable redis lib logging (#21344)
1 parent b3e0789 commit 20a5119

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/go/plugin/go.d/collector/redis/collector.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ import (
2222
//go:embed "config_schema.json"
2323
var configSchema string
2424

25+
type noopLogger struct{}
26+
27+
func (noopLogger) Printf(context.Context, string, ...any) {}
28+
2529
func init() {
30+
redis.SetLogger(noopLogger{})
31+
2632
module.Register("redis", module.Creator{
2733
JobConfigSchema: configSchema,
2834
Create: func() module.Module { return New() },

0 commit comments

Comments
 (0)