From 71192c4169bd9a8608848b9d429bedcb7a94b6a3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 9 Jan 2024 11:01:25 -0500 Subject: [PATCH] fix: use our logger --- node/node.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/node/node.go b/node/node.go index a0d96d8..6322796 100644 --- a/node/node.go +++ b/node/node.go @@ -226,8 +226,7 @@ func (n *NodeImpl) DownloadBytesByHash(hash *encoding.Multihash) ([]byte, error) return nil, err } - // Log the attempt - log.Printf("[try] %s", dlUri.Location().BytesURL()) + n.Logger().Debug("Trying to download from", zap.String("url", dlUri.Location().BytesURL())) res, err := n.httpClient.R().Get(dlUri.Location().BytesURL()) if err != nil {