fix: use our logger
This commit is contained in:
parent
1678b40d82
commit
71192c4169
|
@ -226,8 +226,7 @@ func (n *NodeImpl) DownloadBytesByHash(hash *encoding.Multihash) ([]byte, error)
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Log the attempt
|
n.Logger().Debug("Trying to download from", zap.String("url", dlUri.Location().BytesURL()))
|
||||||
log.Printf("[try] %s", dlUri.Location().BytesURL())
|
|
||||||
|
|
||||||
res, err := n.httpClient.R().Get(dlUri.Location().BytesURL())
|
res, err := n.httpClient.R().Get(dlUri.Location().BytesURL())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue