Browse Source

调整部分日志的级别

gitlink
Sydonian 1 year ago
parent
commit
f171a8a098
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      common/pkgs/cmd/upload_objects.go
  2. +1
    -1
      common/pkgs/downloader/io.go

+ 1
- 1
common/pkgs/cmd/upload_objects.go View File

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


+ 1
- 1
common/pkgs/downloader/io.go View File

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


Loading…
Cancel
Save