2019-07-03 17:39:07 +00:00
|
|
|
package node
|
|
|
|
|
|
|
|
import (
|
2020-01-08 19:10:57 +00:00
|
|
|
logging "github.com/ipfs/go-log/v2"
|
2019-07-03 17:39:07 +00:00
|
|
|
|
|
|
|
"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)
|