Skip to content

Commit 95927e7

Browse files
committed
cleanup
1 parent 0c83f6e commit 95927e7

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ import (
99
"sync"
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/reference"
1514
"github.com/0chain/blobber/code/go/0chain.net/blobbercore/util"
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
type NewDir struct {
@@ -82,7 +80,6 @@ func (nf *NewDir) ApplyChange(ctx context.Context, rootRef *reference.Ref, chang
8280
fmt.Sprintf("file path %s has no entry in fileID meta", newRef.Path))
8381
}
8482
newRef.FileID = fileID
85-
logging.Logger.Info("new_dir", zap.String("path", newRef.Path), zap.String("custom_meta", nf.CustomMeta))
8683
newRef.CustomMeta = nf.CustomMeta
8784
dirRef.AddChild(newRef)
8885
dirRef = newRef

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,6 @@ func (fsh *StorageHandler) CreateDir(ctx context.Context, r *http.Request) (*all
12461246
}
12471247

12481248
customMeta := r.FormValue("custom_meta")
1249-
logging.Logger.Info("create_dir", zap.String("dir_path", dirPath), zap.String("custom_meta", customMeta))
12501249

12511250
exisitingRef, err := fsh.checkIfFileAlreadyExists(ctx, allocationID, dirPath)
12521251
if err != nil {
@@ -1262,7 +1261,6 @@ func (fsh *StorageHandler) CreateDir(ctx context.Context, r *http.Request) (*all
12621261
if exisitingRef.Type == reference.DIRECTORY {
12631262

12641263
if exisitingRef.CustomMeta != customMeta {
1265-
logging.Logger.Info("Updating custom meta", zap.Int64("id", exisitingRef.ID))
12661264
_ = datastore.GetStore().WithNewTransaction(func(ctx context.Context) error {
12671265
err := reference.UpdateCustomMeta(ctx, exisitingRef, customMeta)
12681266
if err != nil {

code/go/0chain.net/blobbercore/reference/referencepath.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ func GetRefs(ctx context.Context, allocationID, path, offsetPath, _type string,
274274
}
275275
refs = &pRefs
276276
if len(pRefs) > 0 {
277-
logging.Logger.Info("getRefs", zap.String("path", pRefs[len(pRefs)-1].Path), zap.String("custom_meta", pRefs[len(pRefs)-1].CustomMeta))
278277
newOffsetPath = pRefs[len(pRefs)-1].Path
279278
}
280279
return

0 commit comments

Comments
 (0)