Skip to content

Commit

Permalink
stop logging public keys on signature cache hit
Browse files Browse the repository at this point in the history
  • Loading branch information
feuGeneA committed Sep 10, 2024
1 parent 8771a32 commit fd04dc5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions signature-aggregator/aggregator/cache/cache.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cache

import (
"encoding/hex"
"math"

"github.com/ava-labs/avalanchego/ids"
Expand Down Expand Up @@ -42,15 +41,10 @@ func (c *Cache) Get(msgID ids.ID) (map[PublicKeyBytes]SignatureBytes, bool) {
cachedValue, isCached := c.signatures.Get(msgID)

if isCached {
var encodedKeys []string
for key := range cachedValue {
encodedKeys = append(encodedKeys, hex.EncodeToString(key[:]))
}
c.logger.Debug(
"cache hit",
zap.Stringer("msgID", msgID),
zap.Int("signatureCount", len(cachedValue)),
zap.Strings("public keys", encodedKeys),
)
return cachedValue, true
} else {
Expand Down

0 comments on commit fd04dc5

Please sign in to comment.