fixup b95e983d0d: prunerFactory: fix duplicate logger fields

This commit is contained in:
Christian Schwarz 2018-09-03 13:19:56 -07:00
parent 03f9f81cb5
commit 8799108b55

View File

@ -106,13 +106,11 @@ func (j *Push) do(ctx context.Context) {
j.replication.Drive(ctx, sender, receiver) j.replication.Drive(ctx, sender, receiver)
log.Info("start pruning sender") log.Info("start pruning sender")
psCtx := pruner.WithLogger(ctx, pruner.GetLogger(ctx).WithField("prune_side", "sender")) senderPruner := j.prunerFactory.BuildSenderPruner(ctx, sender, sender)
senderPruner := j.prunerFactory.BuildSenderPruner(psCtx, sender, sender) // FIXME ctx as member
senderPruner.Prune() senderPruner.Prune()
log.Info("start pruning receiver") log.Info("start pruning receiver")
prCtx := pruner.WithLogger(ctx, pruner.GetLogger(ctx).WithField("prune_side", "receiver")) receiverPruner := j.prunerFactory.BuildReceiverPruner(ctx, receiver, sender)
receiverPruner := j.prunerFactory.BuildReceiverPruner(prCtx, receiver, sender) // FIXME ctx as member
receiverPruner.Prune() receiverPruner.Prune()
} }