From f171a8a09840507832830962648c691188e113c7 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Fri, 17 May 2024 09:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=83=A8=E5=88=86=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E7=9A=84=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/pkgs/cmd/upload_objects.go | 2 +- common/pkgs/downloader/io.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/pkgs/cmd/upload_objects.go b/common/pkgs/cmd/upload_objects.go index 96c53d1..8706e36 100644 --- a/common/pkgs/cmd/upload_objects.go +++ b/common/pkgs/cmd/upload_objects.go @@ -214,7 +214,7 @@ func uploadAndUpdatePackage(packageID cdssdk.PackageID, objectIter iterator.Uplo func uploadFile(file io.Reader, uploadNode UploadNodeInfo) (string, error) { // 本地有IPFS,则直接从本地IPFS上传 if stgglb.IPFSPool != nil { - logger.Infof("try to use local IPFS to upload file") + logger.Debug("try to use local IPFS to upload file") // 只有本地IPFS不是存储系统中的一个节点,才需要Pin文件 fileHash, err := uploadToLocalIPFS(file, uploadNode.Node.NodeID, stgglb.Local.NodeID == nil) diff --git a/common/pkgs/downloader/io.go b/common/pkgs/downloader/io.go index e150f5e..fd9cf46 100644 --- a/common/pkgs/downloader/io.go +++ b/common/pkgs/downloader/io.go @@ -91,7 +91,7 @@ func (r *IPFSReader) Close() error { func (r *IPFSReader) openStream() (io.ReadCloser, error) { if stgglb.IPFSPool != nil { - logger.Infof("try to use local IPFS to download file") + logger.Debug("try to use local IPFS to download file") reader, err := r.fromLocalIPFS() if err == nil {