lotus/node/fxlog.go
2019-07-03 19:39:07 +02:00

18 lines
256 B
Go

package node
import (
logging "github.com/ipfs/go-log"
"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)