mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
p2p error logging (#3292)
This commit is contained in:
parent
0c0ec97343
commit
0353cc533e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user