From a24c74c5021470722c79032664f4d05de917dad5 Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Mon, 18 Mar 2019 19:02:37 +0200 Subject: [PATCH] fix message formatting (#1512) --- bootstrap/peer.go | 4 ++-- satellite/peer.go | 4 ++-- storagenode/peer.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bootstrap/peer.go b/bootstrap/peer.go index 245468b7c..d95d124d9 100644 --- a/bootstrap/peer.go +++ b/bootstrap/peer.go @@ -185,8 +185,8 @@ func (peer *Peer) Run(ctx context.Context) error { // TODO: move the message into Server instead // Don't change the format of this comment, it is used to figure out the node id. peer.Log.Sugar().Infof("Node %s started", peer.Identity.ID) - peer.Log.Sugar().Infof("Public server started on %s", peer.Identity.ID, peer.Addr()) - peer.Log.Sugar().Infof("Private server started on %s", peer.Identity.ID, peer.PrivateAddr()) + peer.Log.Sugar().Infof("Public server started on %s", peer.Addr()) + peer.Log.Sugar().Infof("Private server started on %s", peer.PrivateAddr()) return ignoreCancel(peer.Server.Run(ctx)) }) group.Go(func() error { diff --git a/satellite/peer.go b/satellite/peer.go index 4d04b8690..f15f9b1d9 100644 --- a/satellite/peer.go +++ b/satellite/peer.go @@ -539,8 +539,8 @@ func (peer *Peer) Run(ctx context.Context) error { // TODO: move the message into Server instead // Don't change the format of this comment, it is used to figure out the node id. peer.Log.Sugar().Infof("Node %s started", peer.Identity.ID) - peer.Log.Sugar().Infof("Public server started on %s", peer.Identity.ID, peer.Addr()) - peer.Log.Sugar().Infof("Private server started on %s", peer.Identity.ID, peer.PrivateAddr()) + peer.Log.Sugar().Infof("Public server started on %s", peer.Addr()) + peer.Log.Sugar().Infof("Private server started on %s", peer.PrivateAddr()) return ignoreCancel(peer.Server.Run(ctx)) }) group.Go(func() error { diff --git a/storagenode/peer.go b/storagenode/peer.go index 120096e90..67209373e 100644 --- a/storagenode/peer.go +++ b/storagenode/peer.go @@ -263,8 +263,8 @@ func (peer *Peer) Run(ctx context.Context) error { // TODO: move the message into Server instead // Don't change the format of this comment, it is used to figure out the node id. peer.Log.Sugar().Infof("Node %s started", peer.Identity.ID) - peer.Log.Sugar().Infof("Public server started on %s", peer.Identity.ID, peer.Addr()) - peer.Log.Sugar().Infof("Private server started on %s", peer.Identity.ID, peer.PrivateAddr()) + peer.Log.Sugar().Infof("Public server started on %s", peer.Addr()) + peer.Log.Sugar().Infof("Private server started on %s", peer.PrivateAddr()) return ignoreCancel(peer.Server.Run(ctx)) })