diff --git a/src/service/ratelimit.go b/src/service/ratelimit.go index a2c6cc24..e41f71b5 100644 --- a/src/service/ratelimit.go +++ b/src/service/ratelimit.go @@ -186,7 +186,6 @@ func (this *service) shouldRateLimitWorker( limitsToCheck, isUnlimited := this.constructLimitsToCheck(request, ctx, snappedConfig) s := settings.NewSettings() - fmt.Println("DEBUG in shouldRateLimitWorker", s.BlackListIPNetString, s.BlackListUIDString, s.WhiteListIPNetString, s.WhiteListUIDString) responseDescriptorStatuses := this.cache.DoLimit(ctx, request, limitsToCheck, s.ForceFlag, s.IPFilter, s.UIDFilter, s.OnlyLogOnLimit) assert.Assert(len(limitsToCheck) == len(responseDescriptorStatuses)) diff --git a/src/settings/settings.go b/src/settings/settings.go index 5b6e705d..b192af96 100644 --- a/src/settings/settings.go +++ b/src/settings/settings.go @@ -3,7 +3,6 @@ package settings import ( "context" "crypto/tls" - "fmt" "log" "net" "strings" @@ -226,11 +225,8 @@ func NewSettings() Settings { Addr: s.RedisUrl, Password: s.RedisAuth, }) - fmt.Println("DEBUG redis config: ", s.RedisUrl, s.RedisAuth) if s.EnableDynamicConfig { - fmt.Println("DEBUG enable dynamic config") - dc := dynamicConfig{} h, err := harvester.New(&dc, chNotify, harvester.WithRedisSeed(redisClient), @@ -244,8 +240,6 @@ func NewSettings() Settings { if err != nil { log.Fatalf("failed to harvest configuration: %v", err) } - fmt.Println("DEBUG dynamicConfig: ", dc.WhiteListIPNetString.Get(), dc.WhiteListUIDString.Get(), dc.BlackListIPNetString.Get(), dc.BlackListUIDString.Get()) - s.WhiteListIPNetString = dc.WhiteListIPNetString.Get() s.BlackListIPNetString = dc.BlackListIPNetString.Get() s.WhiteListUIDString = dc.WhiteListUIDString.Get()