From d6da8d971c128546204c891fe9f252112add9169 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 19 Dec 2023 14:47:11 -0700 Subject: [PATCH] logger filter for gas --- store/types/gas.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/store/types/gas.go b/store/types/gas.go index 65a60cb37df0..b5d6211f4f32 100644 --- a/store/types/gas.go +++ b/store/types/gas.go @@ -66,6 +66,9 @@ func (g *basicGasMeter) SetLogger(logger log.Logger) { // NewGasMeter returns a reference to a new basicGasMeter. func NewGasMeter(limit Gas, logger log.Logger) GasMeter { + + logger = logger.With("sim", "info") + return &basicGasMeter{ limit: limit, consumed: 0, @@ -170,6 +173,9 @@ func (g *infiniteGasMeter) SetLogger(logger log.Logger) { // NewInfiniteGasMeter returns a new gas meter without a limit. func NewInfiniteGasMeter(logger log.Logger) GasMeter { + + logger = logger.With("sim", "info") + return &infiniteGasMeter{ consumed: 0, logger: logger,