Skip to content

Commit 249501b

Browse files
committed
cleanup
1 parent fe07d04 commit 249501b

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

code/go/0chain.net/blobbercore/allocation/file_changer_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (nf *UpdateFileChanger) ApplyChange(ctx context.Context, rootRef *reference
9999
fileRef.EncryptedKeyPoint = nf.EncryptedKeyPoint
100100
fileRef.ChunkSize = nf.ChunkSize
101101
fileRef.IsPrecommit = true
102-
logging.Logger.Info("UpdateFileChanger.ApplyChange", zap.Any("ThumbnailHash: ", fileRef.ThumbnailHash), zap.Any("ThumbnailSize: ", fileRef.ThumbnailSize))
102+
103103
return rootRef, nil
104104
}
105105

code/go/0chain.net/blobbercore/allocation/file_changer_upload.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,11 @@ import (
88
"strings"
99

1010
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/config"
11-
"go.uber.org/zap"
1211

1312
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/reference"
1413
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/util"
1514

1615
"github.com/0chain/blobber/code/go/0chain.net/core/common"
17-
"github.com/0chain/blobber/code/go/0chain.net/core/logging"
1816
)
1917

2018
// UploadFileChanger file change processor for continuous upload in INIT/APPEND/FINALIZE
@@ -122,7 +120,6 @@ func (nf *UploadFileChanger) applyChange(ctx context.Context, rootRef *reference
122120
HashToBeComputed: true,
123121
IsPrecommit: true,
124122
}
125-
logging.Logger.Info("UpdateFileChanger.ApplyChange", zap.Any("ThumbnailHash: ", newFile.ThumbnailHash), zap.Any("ThumbnailSize: ", newFile.ThumbnailSize))
126123

127124
fileID, ok := fileIDMeta[newFile.Path]
128125
if !ok || fileID == "" {

code/go/0chain.net/blobbercore/handler/file_command_update.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,12 @@ import (
99
"net/http"
1010

1111
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/config"
12-
"go.uber.org/zap"
1312

1413
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/allocation"
1514
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/filestore"
1615
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/reference"
1716
"github.com/0chain/blobber/code/go/0chain.net/core/common"
1817
"github.com/0chain/blobber/code/go/0chain.net/core/encryption"
19-
"github.com/0chain/blobber/code/go/0chain.net/core/logging"
2018
sdkConst "github.com/0chain/gosdk/constants"
2119
"github.com/0chain/gosdk/zboxcore/fileref"
2220
)
@@ -215,7 +213,6 @@ func (cmd *UpdateFileCommand) reloadChange() {
215213
// UpdateChange add UpdateFileChanger in db
216214
func (cmd *UpdateFileCommand) UpdateChange(ctx context.Context, connectionObj *allocation.AllocationChangeCollector) error {
217215
cmd.fileChanger.AllocationID = connectionObj.AllocationID
218-
logging.Logger.Info("UpdateFileCommand.UpdateChange", zap.Any("ThumbnailSize: ", cmd.fileChanger.ThumbnailSize), zap.Any("ThumbnailHash: ", cmd.fileChanger.ThumbnailHash))
219216
for _, c := range connectionObj.Changes {
220217
filePath, _ := c.GetOrParseAffectedFilePath()
221218
if c.Operation != sdkConst.FileOperationUpdate || cmd.fileChanger.Path != filePath {

code/go/0chain.net/blobbercore/handler/file_command_upload.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ func (cmd *UploadFileCommand) reloadChange() {
230230
// UpdateChange replace AddFileChange in db
231231
func (cmd *UploadFileCommand) UpdateChange(ctx context.Context, connectionObj *allocation.AllocationChangeCollector) error {
232232
cmd.fileChanger.AllocationID = connectionObj.AllocationID
233-
logging.Logger.Info("UploadFileCommand.UpdateChange", zap.Any("ThumbnailSize: ", cmd.fileChanger.ThumbnailSize), zap.Any("ThumbnailHash: ", cmd.fileChanger.ThumbnailHash))
234233
for _, c := range connectionObj.Changes {
235234
filePath, _ := c.GetOrParseAffectedFilePath()
236235
if c.Operation != constants.FileOperationInsert || cmd.fileChanger.Path != filePath {

0 commit comments

Comments
 (0)