Skip to content

Commit

Permalink
logger filter for gas
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Dec 19, 2023
1 parent b77a290 commit d6da8d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions store/types/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Check failure on line 69 in store/types/gas.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gofumpt`-ed (gofumpt)
logger = logger.With("sim", "info")

return &basicGasMeter{
limit: limit,
consumed: 0,
Expand Down Expand Up @@ -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 {

Check failure on line 176 in store/types/gas.go

View workflow job for this annotation

GitHub Actions / golangci-lint

File is not `gofumpt`-ed (gofumpt)
logger = logger.With("sim", "info")

return &infiniteGasMeter{
consumed: 0,
logger: logger,
Expand Down

0 comments on commit d6da8d9

Please sign in to comment.