From f65663c5fd5e1d1171d6409497e2f92ff586656e Mon Sep 17 00:00:00 2001 From: Peter Teich Date: Mon, 19 Jul 2021 22:01:11 +0200 Subject: [PATCH] Change unnecessary debug to info level --- storage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage.go b/storage.go index a563d64..ccabbc9 100644 --- a/storage.go +++ b/storage.go @@ -54,7 +54,7 @@ func (cs *ConsulStorage) prefixKey(key string) string { // Lock acquires a distributed lock for the given key or blocks until it gets one func (cs *ConsulStorage) Lock(ctx context.Context, key string) error { - cs.logger.Infof("trying lock for %s", key) + cs.logger.Debugf("trying lock for %s", key) if _, isLocked := cs.GetLock(key); isLocked { return nil @@ -149,7 +149,7 @@ func (cs ConsulStorage) Store(key string, value []byte) error { // Load retrieves the value for a key from Consul KV func (cs ConsulStorage) Load(key string) ([]byte, error) { - cs.logger.Infof("loading data from Consul for %s", key) + cs.logger.Debugf("loading data from Consul for %s", key) kv, _, err := cs.ConsulClient.KV().Get(cs.prefixKey(key), &consul.QueryOptions{RequireConsistent: true}) if err != nil {