Skip to content

Commit 6d2db3f

Browse files
authored
say how many leases there are when threshold exceeded (#10567) (#10573)
1 parent b9aab1b commit 6d2db3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vault/expiration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ func (m *ExpirationManager) emitMetrics() {
19891989
// Check if lease count is greater than the threshold
19901990
if num > maxLeaseThreshold {
19911991
if atomic.LoadUint32(m.leaseCheckCounter) > 59 {
1992-
m.logger.Warn("lease count exceeds warning lease threshold")
1992+
m.logger.Warn("lease count exceeds warning lease threshold", "have", num, "threshold", maxLeaseThreshold)
19931993
atomic.StoreUint32(m.leaseCheckCounter, 0)
19941994
} else {
19951995
atomic.AddUint32(m.leaseCheckCounter, 1)

0 commit comments

Comments
 (0)