2021-05-18 21:01:10 +00:00
|
|
|
package kit
|
2021-05-18 20:32:10 +00:00
|
|
|
|
2021-05-21 13:33:48 +00:00
|
|
|
import (
|
|
|
|
"github.com/filecoin-project/lotus/lib/lotuslog"
|
|
|
|
logging "github.com/ipfs/go-log/v2"
|
|
|
|
)
|
2021-05-18 20:32:10 +00:00
|
|
|
|
|
|
|
func QuietMiningLogs() {
|
2021-05-21 13:33:48 +00:00
|
|
|
lotuslog.SetupLogLevels()
|
|
|
|
|
2021-06-08 23:46:57 +00:00
|
|
|
_ = logging.SetLogLevel("miner", "ERROR")
|
2021-05-18 20:32:10 +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")
|
|
|
|
}
|