Skip to content

Commit

Permalink
Fix warn message.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Jun 26, 2020
1 parent 6d4dc04 commit 07b5fa5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion storage/immunitycache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,13 @@ func (ic *ImmunityCache) Diagnose(_ bool) {

if hospitality <= hospitalityWarnThreshold {
// After emitting a Warn, we reset the hospitality indicator
log.Warn("ImmunityCache.Diagnose()", "cache is not hospitable", "hospitality", hospitality)
log.Warn("ImmunityCache.Diagnose(): cache is not hospitable",
"name", ic.config.Name,
"count", count,
"countImmune", countImmune,
"numBytes", numBytes,
"hospitality", hospitality,
)
ic.hospitality.Reset()
}
}
Expand Down

0 comments on commit 07b5fa5

Please sign in to comment.