lotus/itests/kit/log.go

20 lines
535 B
Go
Raw Normal View History

2021-05-18 21:01:10 +00:00
package kit
2021-05-21 13:33:48 +00:00
import (
"github.com/filecoin-project/lotus/lib/lotuslog"
logging "github.com/ipfs/go-log/v2"
)
func QuietMiningLogs() {
2021-05-21 13:33:48 +00:00
lotuslog.SetupLogLevels()
2021-06-08 23:46:57 +00:00
_ = logging.SetLogLevel("miner", "ERROR")
_ = logging.SetLogLevel("chainstore", "ERROR")
_ = logging.SetLogLevel("chain", "ERROR")
_ = logging.SetLogLevel("sub", "ERROR")
_ = logging.SetLogLevel("storageminer", "ERROR")
_ = logging.SetLogLevel("pubsub", "ERROR")
_ = logging.SetLogLevel("gen", "ERROR")
_ = logging.SetLogLevel("dht/RtRefreshManager", "ERROR")
}