From 1a218615d8db801e7100758713702de5ed23e99d Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 18 Feb 2025 17:55:19 +0100 Subject: [PATCH] cmd/thalos/server.go: dont print the length of password to log. --- cmd/thalos/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/thalos/server.go b/cmd/thalos/server.go index 72ea05f..1e9b561 100644 --- a/cmd/thalos/server.go +++ b/cmd/thalos/server.go @@ -253,7 +253,7 @@ func ConnectRedis(conf *config.RedisConfig) (*redis.Client, error) { } if len(conf.Password) > 0 { - logEntry = logEntry.WithField("password", strings.Repeat("*", len(conf.Password))) + logEntry = logEntry.WithField("password", strings.Repeat("*", 10)) } logEntry.Info("Connecting to redis")