From d7adde851302e369029522a2b80d5ee3f21c8835 Mon Sep 17 00:00:00 2001 From: Michael Khalil Date: Fri, 1 May 2020 10:18:46 -0700 Subject: [PATCH] guardian: remove logging from cache update (#40) --- pkg/guardian/redis_conf_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/guardian/redis_conf_store.go b/pkg/guardian/redis_conf_store.go index 422ec05..f047603 100644 --- a/pkg/guardian/redis_conf_store.go +++ b/pkg/guardian/redis_conf_store.go @@ -893,10 +893,10 @@ func (rs *RedisConfStore) pipelinedFetchConf() fetchConf { continue } if time.Now().UTC().Before(prisoner.Expiry) { - rs.logger.Printf("adding %v to prisoners\n", prisoner.IP.String()) + rs.logger.Debugf("adding %v to prisoners\n", prisoner.IP.String()) rs.conf.prisoners.addPrisonerFromStore(prisoner) } else { - rs.logger.Printf("removing %v from prisoners\n", prisoner.IP.String()) + rs.logger.Debugf("removing %v from prisoners\n", prisoner.IP.String()) expiredPrisoners = append(expiredPrisoners, ip) } }