lotus/lib/lotuslog/config.go
2022-03-10 14:44:56 +01:00

12 lines
218 B
Go

package lotuslog
import logging "github.com/ipfs/go-log/v2"
func SetLevelsFromConfig(l map[string]string) {
for sys, level := range l {
if err := logging.SetLogLevel(sys, level); err != nil {
continue
}
}
}