mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 03:42:21 +08:00
u.DOut -> log.Debug
and other logging switches. I kept the u.PErr and u.POut in cli commands, as those do need to write raw output directly.
This commit is contained in:
@ -40,11 +40,11 @@ func (s *Resolver) ResolvePath(fpath string) (*merkledag.Node, error) {
|
||||
// first element in the path is a b58 hash (for now)
|
||||
h, err := mh.FromB58String(parts[0])
|
||||
if err != nil {
|
||||
u.DOut("given path element is not a base58 string.\n")
|
||||
log.Debug("given path element is not a base58 string.\n")
|
||||
return nil, err
|
||||
}
|
||||
|
||||
u.DOut("Resolve dag get.\n")
|
||||
log.Debug("Resolve dag get.\n")
|
||||
nd, err := s.DAG.Get(u.Key(h))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user