fix: log memory limit in bytes

This commit is contained in:
Fallengirl 2025-12-01 09:38:54 +01:00 committed by GitHub
parent 6f2cbb7a27
commit 0a8e559e01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,7 +252,7 @@ func (*HandlerT) SetGCPercent(v int) int {
// - Geth also allocates memory off-heap, particularly for fastCache and Pebble,
// which can be non-trivial (a few gigabytes by default).
func (*HandlerT) SetMemoryLimit(limit int64) int64 {
log.Info("Setting memory limit", "size", common.PrettyDuration(limit))
log.Info("Setting memory limit", "size", common.StorageSize(limit))
return debug.SetMemoryLimit(limit)
}