mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07: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)
|
privKey, err := privKey(s.cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.startupErr = err
|
s.startupErr = err
|
||||||
|
log.WithError(err).Error("Failed to generate p2p private key")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,6 +66,7 @@ func (s *Service) Start() {
|
|||||||
h, err := libp2p.New(s.ctx, opts...)
|
h, err := libp2p.New(s.ctx, opts...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.startupErr = err
|
s.startupErr = err
|
||||||
|
log.WithError(err).Error("Failed to create p2p host")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
s.host = h
|
s.host = h
|
||||||
|
Loading…
Reference in New Issue
Block a user