lotus/node/fxlog.go
2022-06-14 17:00:51 +02:00

17 lines
258 B
Go

package node
import (
logging "github.com/ipfs/go-log/v2"
"go.uber.org/fx"
)
type debugPrinter struct {
l logging.StandardLogger
}
func (p *debugPrinter) Printf(f string, a ...interface{}) {
p.l.Debugf(f, a...)
}
var _ fx.Printer = new(debugPrinter)