Skip to content

Commit

Permalink
add debug log entry when adding entries to TimedCache
Browse files Browse the repository at this point in the history
  • Loading branch information
capnspacehook committed Jul 9, 2022
1 parent d385db1 commit 1005678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions timed_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ func (t *TimedCache[T]) AddEntry(entry T, ttl time.Duration) {
t.mtx.Lock()
defer t.mtx.Unlock()

t.logger.Debug("adding entry", zap.Any("entry", entry))

ct, ok := t.cache[entry]
if ok {
if t.count {
Expand Down

0 comments on commit 1005678

Please sign in to comment.