From 0353cc533ed4d26dff7d707031b35f199c3f3f56 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Fri, 23 Aug 2019 17:46:54 -0400 Subject: [PATCH] p2p error logging (#3292) --- beacon-chain/p2p/service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon-chain/p2p/service.go b/beacon-chain/p2p/service.go index 8e2cf163f..329c0bad1 100644 --- a/beacon-chain/p2p/service.go +++ b/beacon-chain/p2p/service.go @@ -57,6 +57,7 @@ func (s *Service) Start() { privKey, err := privKey(s.cfg) if err != nil { s.startupErr = err + log.WithError(err).Error("Failed to generate p2p private key") return } @@ -65,6 +66,7 @@ func (s *Service) Start() { h, err := libp2p.New(s.ctx, opts...) if err != nil { s.startupErr = err + log.WithError(err).Error("Failed to create p2p host") return } s.host = h