lotus/lib/lotuslog/levels.go
2020-03-10 12:44:50 -07:00

19 lines
394 B
Go

package lotuslog
import (
"os"
logging "github.com/ipfs/go-log/v2"
)
func SetupLogLevels() {
if _, set := os.LookupEnv("GOLOG_LOG_LEVEL"); !set {
logging.SetLogLevel("*", "INFO")
logging.SetLogLevel("dht", "ERROR")
logging.SetLogLevel("swarm2", "WARN")
logging.SetLogLevel("bitswap", "WARN")
//logging.SetLogLevel("pubsub", "WARN")
logging.SetLogLevel("connmgr", "WARN")
}
}