swarm/storage: remove Debug calls

This commit is contained in:
Anton Evangelatov 2019-01-23 12:19:27 +01:00
parent b577b2ffee
commit c1cd442fc3

View file

@ -201,8 +201,6 @@ func (pc *PyramidChunker) decrementWorkerCount() {
} }
func (pc *PyramidChunker) Split(ctx context.Context) (k Address, wait func(context.Context) error, err error) { func (pc *PyramidChunker) Split(ctx context.Context) (k Address, wait func(context.Context) error, err error) {
log.Debug("pyramid.chunker: Split()")
pc.wg.Add(1) pc.wg.Add(1)
pc.prepareChunks(ctx, false) pc.prepareChunks(ctx, false)
@ -235,7 +233,6 @@ func (pc *PyramidChunker) Split(ctx context.Context) (k Address, wait func(conte
} }
func (pc *PyramidChunker) Append(ctx context.Context) (k Address, wait func(context.Context) error, err error) { func (pc *PyramidChunker) Append(ctx context.Context) (k Address, wait func(context.Context) error, err error) {
log.Debug("pyramid.chunker: Append()")
// Load the right most unfinished tree chunks in every level // Load the right most unfinished tree chunks in every level
pc.loadTree(ctx) pc.loadTree(ctx)
@ -283,8 +280,6 @@ func (pc *PyramidChunker) processor(ctx context.Context, id int64) {
} }
func (pc *PyramidChunker) processChunk(ctx context.Context, id int64, job *chunkJob) { func (pc *PyramidChunker) processChunk(ctx context.Context, id int64, job *chunkJob) {
log.Debug("pyramid.chunker: processChunk()", "id", id)
ref, err := pc.putter.Put(ctx, job.chunk) ref, err := pc.putter.Put(ctx, job.chunk)
if err != nil { if err != nil {
select { select {
@ -301,7 +296,6 @@ func (pc *PyramidChunker) processChunk(ctx context.Context, id int64, job *chunk
} }
func (pc *PyramidChunker) loadTree(ctx context.Context) error { func (pc *PyramidChunker) loadTree(ctx context.Context) error {
log.Debug("pyramid.chunker: loadTree()")
// Get the root chunk to get the total size // Get the root chunk to get the total size
chunkData, err := pc.getter.Get(ctx, Reference(pc.key)) chunkData, err := pc.getter.Get(ctx, Reference(pc.key))
if err != nil { if err != nil {
@ -386,7 +380,6 @@ func (pc *PyramidChunker) loadTree(ctx context.Context) error {
} }
func (pc *PyramidChunker) prepareChunks(ctx context.Context, isAppend bool) { func (pc *PyramidChunker) prepareChunks(ctx context.Context, isAppend bool) {
log.Debug("pyramid.chunker: prepareChunks", "isAppend", isAppend)
defer pc.wg.Done() defer pc.wg.Done()
chunkWG := &sync.WaitGroup{} chunkWG := &sync.WaitGroup{}