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"
|
|
|
|
)
|
|
|
|
|
2024-04-13 10:36:15 +00:00
|
|
|
// QuietLogs discards the geth logs and sets the plugin test log level to "warning"
|
|
|
|
// The geth sync logs are noisy, so during some tests it helps to silence them.
|
2023-09-20 03:22:15 +00:00
|
|
|
func QuietLogs() {
|
2024-04-13 10:36:15 +00:00
|
|
|
geth_log.SetDefault(geth_log.New(geth_log.DiscardHandler()))
|
2023-06-24 05:00:21 +00:00
|
|
|
log.TestLogger.SetLevel(2)
|
|
|
|
}
|