plugeth-statediff/test_helpers/util.go
Roy Crihfield 2446393db4
All checks were successful
Test / Run unit tests (pull_request) Successful in 17m52s
Test / Run integration tests (pull_request) Successful in 35m2s
fn name
2023-09-19 18:06:21 +08:00

15 lines
389 B
Go

package test_helpers
import (
geth_log "github.com/ethereum/go-ethereum/log"
"github.com/cerc-io/plugeth-statediff/utils/log"
)
// QuietLogs 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 QuietLogs() {
geth_log.Root().SetHandler(geth_log.DiscardHandler())
log.TestLogger.SetLevel(2)
}