From 8799108b5509d41dd9ef18700d983ecbd9553b09 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Mon, 3 Sep 2018 13:19:56 -0700 Subject: [PATCH] fixup b95e983d0d7b3102a7917f7aca8aef215b1ab2be: prunerFactory: fix duplicate logger fields --- daemon/job/push.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/daemon/job/push.go b/daemon/job/push.go index 5c7004f..d5406b1 100644 --- a/daemon/job/push.go +++ b/daemon/job/push.go @@ -106,13 +106,11 @@ func (j *Push) do(ctx context.Context) { j.replication.Drive(ctx, sender, receiver) log.Info("start pruning sender") - psCtx := pruner.WithLogger(ctx, pruner.GetLogger(ctx).WithField("prune_side", "sender")) - senderPruner := j.prunerFactory.BuildSenderPruner(psCtx, sender, sender) // FIXME ctx as member + senderPruner := j.prunerFactory.BuildSenderPruner(ctx, sender, sender) senderPruner.Prune() log.Info("start pruning receiver") - prCtx := pruner.WithLogger(ctx, pruner.GetLogger(ctx).WithField("prune_side", "receiver")) - receiverPruner := j.prunerFactory.BuildReceiverPruner(prCtx, receiver, sender) // FIXME ctx as member + receiverPruner := j.prunerFactory.BuildReceiverPruner(ctx, receiver, sender) receiverPruner.Prune() }