lotus/itests/kit/log.go

23 lines
665 B
Go
Raw Normal View History

2021-06-18 18:45:29 +00:00
package kit
import (
logging "github.com/ipfs/go-log/v2"
2022-06-14 15:00:51 +00:00
"github.com/filecoin-project/lotus/lib/lotuslog"
)
func QuietMiningLogs() {
lotuslog.SetupLogLevels()
2021-06-14 17:58:40 +00:00
_ = logging.SetLogLevel("miner", "ERROR") // set this to INFO to watch mining happen.
_ = logging.SetLogLevel("chainstore", "ERROR")
_ = logging.SetLogLevel("chain", "ERROR")
_ = logging.SetLogLevel("sub", "ERROR")
_ = logging.SetLogLevel("wdpost", "ERROR")
_ = logging.SetLogLevel("storageminer", "ERROR")
_ = logging.SetLogLevel("pubsub", "ERROR")
_ = logging.SetLogLevel("gen", "ERROR")
2022-03-16 16:33:05 +00:00
_ = logging.SetLogLevel("rpc", "ERROR")
_ = logging.SetLogLevel("dht/RtRefreshManager", "ERROR")
}