Skip to content

Commit

Permalink
Change unnecessary debug to info level
Browse files Browse the repository at this point in the history
  • Loading branch information
pteich committed Jul 19, 2021
1 parent 2e4155c commit f65663c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit f65663c

Please sign in to comment.