From 183ce49f4019b910422809b924258923cb49f114 Mon Sep 17 00:00:00 2001 From: Tarak Ben Youssef Date: Tue, 11 Jul 2023 19:24:53 -0600 Subject: [PATCH] use fatal logging when system randomness fails --- module/mempool/herocache/backdata/heropool/pool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/mempool/herocache/backdata/heropool/pool.go b/module/mempool/herocache/backdata/heropool/pool.go index 1a84ee78fdd..92f926c2239 100644 --- a/module/mempool/herocache/backdata/heropool/pool.go +++ b/module/mempool/herocache/backdata/heropool/pool.go @@ -180,7 +180,7 @@ func (p *Pool) sliceIndexForEntity() (i EIndex, hasAvailableSlot bool, ejectedEn // we only eject randomly when the pool is full and random ejection is on. random, err := rand.Uint32n(p.size) if err != nil { - p.logger.Warn().Err(err). + p.logger.Fatal().Err(err). Msg("hero pool random ejection failed - falling back to LRU ejection") // fall back to LRU ejection only for this instance return lruEject()