Skip to content

Commit c1cd442

Browse files
committed
swarm/storage: remove Debug calls
1 parent b577b2f commit c1cd442

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

swarm/storage/pyramid.go

-7
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ func (pc *PyramidChunker) decrementWorkerCount() {
201201
}
202202

203203
func (pc *PyramidChunker) Split(ctx context.Context) (k Address, wait func(context.Context) error, err error) {
204-
log.Debug("pyramid.chunker: Split()")
205-
206204
pc.wg.Add(1)
207205
pc.prepareChunks(ctx, false)
208206

@@ -235,7 +233,6 @@ func (pc *PyramidChunker) Split(ctx context.Context) (k Address, wait func(conte
235233
}
236234

237235
func (pc *PyramidChunker) Append(ctx context.Context) (k Address, wait func(context.Context) error, err error) {
238-
log.Debug("pyramid.chunker: Append()")
239236
// Load the right most unfinished tree chunks in every level
240237
pc.loadTree(ctx)
241238

@@ -283,8 +280,6 @@ func (pc *PyramidChunker) processor(ctx context.Context, id int64) {
283280
}
284281

285282
func (pc *PyramidChunker) processChunk(ctx context.Context, id int64, job *chunkJob) {
286-
log.Debug("pyramid.chunker: processChunk()", "id", id)
287-
288283
ref, err := pc.putter.Put(ctx, job.chunk)
289284
if err != nil {
290285
select {
@@ -301,7 +296,6 @@ func (pc *PyramidChunker) processChunk(ctx context.Context, id int64, job *chunk
301296
}
302297

303298
func (pc *PyramidChunker) loadTree(ctx context.Context) error {
304-
log.Debug("pyramid.chunker: loadTree()")
305299
// Get the root chunk to get the total size
306300
chunkData, err := pc.getter.Get(ctx, Reference(pc.key))
307301
if err != nil {
@@ -386,7 +380,6 @@ func (pc *PyramidChunker) loadTree(ctx context.Context) error {
386380
}
387381

388382
func (pc *PyramidChunker) prepareChunks(ctx context.Context, isAppend bool) {
389-
log.Debug("pyramid.chunker: prepareChunks", "isAppend", isAppend)
390383
defer pc.wg.Done()
391384

392385
chunkWG := &sync.WaitGroup{}

0 commit comments

Comments
 (0)