Skip to content

Commit e9f6956

Browse files
committed
Change unnecessary debug to info level
1 parent 71d7b0f commit e9f6956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (cs *ConsulStorage) prefixKey(key string) string {
5454

5555
// Lock acquires a distributed lock for the given key or blocks until it gets one
5656
func (cs *ConsulStorage) Lock(ctx context.Context, key string) error {
57-
cs.logger.Infof("trying lock for %s", key)
57+
cs.logger.Debugf("trying lock for %s", key)
5858

5959
if _, isLocked := cs.GetLock(key); isLocked {
6060
return nil
@@ -149,7 +149,7 @@ func (cs ConsulStorage) Store(key string, value []byte) error {
149149

150150
// Load retrieves the value for a key from Consul KV
151151
func (cs ConsulStorage) Load(key string) ([]byte, error) {
152-
cs.logger.Infof("loading data from Consul for %s", key)
152+
cs.logger.Debugf("loading data from Consul for %s", key)
153153

154154
kv, _, err := cs.ConsulClient.KV().Get(cs.prefixKey(key), &consul.QueryOptions{RequireConsistent: true})
155155
if err != nil {

0 commit comments

Comments
 (0)