lotus/node/fxlog.go
Jakub Sztandera 1ed62628a7
Update go-log to v2
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-08 20:22:31 +01:00

18 lines
259 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)