2023-06-24 05:00:21 +00:00
|
|
|
package test_helpers
|
|
|
|
|
|
|
|
import (
|
|
|
|
geth_log "github.com/ethereum/go-ethereum/log"
|
|
|
|
|
|
|
|
"github.com/cerc-io/plugeth-statediff/utils/log"
|
|
|
|
)
|
|
|
|
|
2023-09-20 03:22:15 +00:00
|
|
|
// 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() {
|
2023-06-24 05:00:21 +00:00
|
|
|
geth_log.Root().SetHandler(geth_log.DiscardHandler())
|
|
|
|
log.TestLogger.SetLevel(2)
|
|
|
|
}
|