fix: use our logger

This commit is contained in:
Derrick Hammer 2024-01-09 11:01:25 -05:00
parent 1678b40d82
commit 71192c4169
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

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