Skip to content

Commit 9a0bac9

Browse files
committed
cleanup
1 parent 0a6965f commit 9a0bac9

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

code/go/0chain.net/blobbercore/challenge/protocol.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ func (cr *ChallengeEntity) LoadValidationTickets(ctx context.Context) error {
106106
var (
107107
postData map[string]any
108108
)
109-
logging.Logger.Debug("[challenge]getPost", zap.String("allocation_id", cr.AllocationID))
110109
if allocationObj.IsStorageV2() {
111110
postData, err = cr.getPostDataV2(ctx, allocationObj)
112111
} else {
@@ -331,7 +330,6 @@ func (cr *ChallengeEntity) getPostDataV2(ctx context.Context, allocationObj *all
331330
return nil, common.NewError("root_mismatch", "File meta root mismatch")
332331
}
333332
}
334-
logging.Logger.Debug("[challenge]getPostDataV2Block: ", zap.Any("blockNum", blockNum), zap.String("allocation_id", cr.AllocationID))
335333
cr.RespondedAllocationRoot = allocationObj.AllocationRoot
336334
if blockNum > 0 {
337335
r := rand.New(rand.NewSource(cr.RandomNumber))
@@ -355,6 +353,8 @@ func (cr *ChallengeEntity) getPostDataV2(ctx context.Context, allocationObj *all
355353
zap.Int64("file size", ref.Size),
356354
zap.String("file path", ref.Path),
357355
zap.Int64("proof gen time", proofGenTime),
356+
zap.String("allocation_id", cr.AllocationID),
357+
zap.String("challenge_id", cr.ChallengeID),
358358
)
359359
postData["challenge_proof"] = challengeResponse
360360
objectSize = ref.Size

code/go/0chain.net/blobbercore/writemarker/worker.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ func redeemWriteMarker(md *markerData) error {
138138
}
139139
allocMu.RUnlock()
140140
}()
141-
logging.Logger.Debug("getAllocation", zap.Any("allocation", allocationID))
142141
alloc, err := allocation.Repo.GetAllocationFromDB(ctx, allocationID)
143142
if err != nil {
144143
logging.Logger.Error("Error redeeming the write marker.", zap.Any("allocation", allocationID), zap.Any("wm", allocationID), zap.Any("error", err))
@@ -155,7 +154,6 @@ func redeemWriteMarker(md *markerData) error {
155154
shouldRollback = true
156155
return nil
157156
}
158-
logging.Logger.Debug("getWritemarker", zap.Any("allocation", allocationID))
159157
wm, err := GetWriteMarkerEntity(ctx, alloc.ID, alloc.AllocationRoot)
160158
if err != nil {
161159
logging.Logger.Error("Error redeeming the write marker.", zap.Any("allocation", allocationID), zap.Any("wm", alloc.AllocationRoot), zap.Any("error", err))
@@ -165,7 +163,6 @@ func redeemWriteMarker(md *markerData) error {
165163
shouldRollback = true
166164
return err
167165
}
168-
logging.Logger.Debug("RedeemMarker", zap.Any("allocation", allocationID), zap.Any("wm", wm.WM.AllocationRoot), zap.Any("txn", wm.CloseTxnID))
169166
err = wm.RedeemMarker(ctx, alloc.LastRedeemedSeq+1)
170167
if err != nil {
171168
elapsedTime := time.Since(start)
@@ -180,7 +177,6 @@ func redeemWriteMarker(md *markerData) error {
180177
shouldRollback = true
181178
return err
182179
}
183-
logging.Logger.Debug("UpdateAllocationRedeem", zap.Any("allocation", allocationID), zap.Any("wm", wm.WM.AllocationRoot), zap.Any("txn", wm.CloseTxnID))
184180
err = allocation.Repo.UpdateAllocationRedeem(ctx, allocationID, wm.WM.AllocationRoot, alloc, wm.Sequence)
185181
if err != nil {
186182
logging.Logger.Error("Error redeeming the write marker. Allocation latest wm redeemed update failed",
@@ -190,7 +186,6 @@ func redeemWriteMarker(md *markerData) error {
190186
go tryAgain(md)
191187
return err
192188
}
193-
logging.Logger.Debug("RedeemMarker", zap.Any("allocation", allocationID), zap.Any("wm", wm.WM.AllocationRoot), zap.Any("txn", wm.CloseTxnID))
194189
err = db.Commit().Error
195190
if err != nil {
196191
logging.Logger.Error("Error committing the writemarker redeem",

0 commit comments

Comments
 (0)