plugeth-statediff/test_helpers/util.go
Roy Crihfield f846fb610b tidy up
log begin/end messages as trace

clean up comments

quiet test logs
2023-07-14 00:56:59 +08:00

14 lines
305 B
Go

package test_helpers
import (
geth_log "github.com/ethereum/go-ethereum/log"
"github.com/cerc-io/plugeth-statediff/utils/log"
)
// The geth sync logs are noisy, it can be useful to silence them
func SilenceLogs() {
geth_log.Root().SetHandler(geth_log.DiscardHandler())
log.TestLogger.SetLevel(2)
}