From 2918ec2eb6d60c743988adb7ef1eb37d7b0eb558 Mon Sep 17 00:00:00 2001 From: Ralph Pichler Date: Tue, 6 Oct 2020 12:10:04 +0200 Subject: [PATCH] fix disconnect non-swap node log (#796) --- pkg/settlement/swap/swap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/settlement/swap/swap.go b/pkg/settlement/swap/swap.go index 969254b5c9d..d2670a45fb2 100644 --- a/pkg/settlement/swap/swap.go +++ b/pkg/settlement/swap/swap.go @@ -112,7 +112,7 @@ func (s *Service) Pay(ctx context.Context, peer swarm.Address, amount uint64) er return err } if !known { - s.logger.Warning("disconnecting non-swap peer %v", peer) + s.logger.Warningf("disconnecting non-swap peer %v", peer) err = s.p2pService.Disconnect(peer) if err != nil { return err