Skip to content

Commit

Permalink
Reduce level of log on nil check in consul WatchKey() (#264)
Browse files Browse the repository at this point in the history
* remove log

Signed-off-by: Joe Elliott <[email protected]>

* set to debug

Signed-off-by: Joe Elliott <[email protected]>

---------

Signed-off-by: Joe Elliott <[email protected]>
  • Loading branch information
joe-elliott authored Feb 2, 2023
1 parent 880a7f8 commit 6043e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kv/consul/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (c *Client) WatchKey(ctx context.Context, key string, f func(interface{}) b
}

if kvp == nil {
level.Info(c.logger).Log("msg", "value is nil", "key", key, "index", index)
level.Debug(c.logger).Log("msg", "value is nil", "key", key, "index", index)
continue
}

Expand Down

0 comments on commit 6043e86

Please sign in to comment.