mirror of
https://github.com/zrepl/zrepl.git
synced 2024-12-23 07:28:57 +01:00
fixup b95e983d0d
: prunerFactory: fix duplicate logger fields
This commit is contained in:
parent
03f9f81cb5
commit
8799108b55
@ -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()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user