1
0
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:
Juan Batiz-Benet
2014-10-09 04:48:13 -07:00
parent c6ffaa4a77
commit 972c0f7b4b
19 changed files with 68 additions and 74 deletions

View File

@ -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