plugeth-statediff/test_helpers/util.go
Roy Crihfield ae33dce5af
Some checks failed
Test / Run unit tests (pull_request) Failing after 6m22s
Test / Run integration tests (pull_request) Failing after 35m56s
add diff iterator comparison on mainnet data
2023-09-06 21:18:53 +08:00

15 lines
393 B
Go

package test_helpers
import (
geth_log "github.com/ethereum/go-ethereum/log"
"github.com/cerc-io/plugeth-statediff/utils/log"
)
// SilenceLogs silences the geth logs and sets the plugin test log level to "warning"
// The geth sync logs are noisy, so it can be nice to silence them.
func SilenceLogs() {
geth_log.Root().SetHandler(geth_log.DiscardHandler())
log.TestLogger.SetLevel(2)
}