2021-06-11 17:26:25 +00:00
|
|
|
package kit2
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/filecoin-project/lotus/lib/lotuslog"
|
|
|
|
logging "github.com/ipfs/go-log/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
func QuietMiningLogs() {
|
|
|
|
lotuslog.SetupLogLevels()
|
|
|
|
|
2021-06-14 17:58:40 +00:00
|
|
|
_ = logging.SetLogLevel("miner", "ERROR") // set this to INFO to watch mining happen.
|
2021-06-11 17:26:25 +00:00
|
|
|
_ = 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")
|
|
|
|
}
|