From f2ce115ade55d2c01faa10d67f48cc8ca80e7bc3 Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Fri, 12 Apr 2024 14:49:01 +0800 Subject: [PATCH] Revert Peer Log Changes (#13872) --- beacon-chain/p2p/options.go | 2 +- testing/endtoend/components/beacon_node.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon-chain/p2p/options.go b/beacon-chain/p2p/options.go index 9935e8e0aef4..de213848333a 100644 --- a/beacon-chain/p2p/options.go +++ b/beacon-chain/p2p/options.go @@ -86,7 +86,7 @@ func (s *Service) buildOptions(ip net.IP, priKey *ecdsa.PrivateKey) ([]libp2p.Op return nil, errors.Wrapf(err, "cannot get ID from public key: %s", ifaceKey.GetPublic().Type().String()) } - log.WithField("peerId", id).Info("Running node with") + log.Infof("Running node with peer id of %s ", id.String()) options := []libp2p.Option{ privKeyOption(priKey), diff --git a/testing/endtoend/components/beacon_node.go b/testing/endtoend/components/beacon_node.go index 42895d2af3df..580fdccec1cf 100644 --- a/testing/endtoend/components/beacon_node.go +++ b/testing/endtoend/components/beacon_node.go @@ -315,7 +315,7 @@ func (node *BeaconNode) Start(ctx context.Context) error { } if config.UseFixedPeerIDs { - peerId, err := helpers.FindFollowingTextInFile(stdOutFile, "Running node with") + peerId, err := helpers.FindFollowingTextInFile(stdOutFile, "Running node with peer id of ") if err != nil { return fmt.Errorf("could not find peer id: %w", err) }