peer+server: provide more verbose logging
This commit is contained in:
2 files changed
+3
-2
No files matched your search
+2
-2
@@ -1099,7 +1099,7 @@ func (p *Brontide) readNextMessage() (lnwire.Message, error) {
|
||||
|
||||
pktLen, err := noiseConn.ReadNextHeader()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
return nil, fmt.Errorf("read next header: %w", err)
|
||||
}
|
||||
|
||||
// First we'll read the next _full_ message. We do this rather than
|
||||
@@ -1128,7 +1128,7 @@ func (p *Brontide) readNextMessage() (lnwire.Message, error) {
|
||||
// pool.
|
||||
rawMsg, readErr := noiseConn.ReadNextBody(buf[:pktLen])
|
||||
if readErr != nil {
|
||||
return readErr
|
||||
return fmt.Errorf("read next body: %w", readErr)
|
||||
}
|
||||
msgLen = uint64(len(rawMsg))
|
||||
|
||||
|
||||
@@ -4012,6 +4012,7 @@ func (s *server) peerTerminationWatcher(p *peer.Brontide, ready chan struct{}) {
|
||||
// If the server is exiting then we can bail out early ourselves as all
|
||||
// the other sub-systems will already be shutting down.
|
||||
if s.Stopped() {
|
||||
srvrLog.Debugf("Server quitting, exit early for peer %v", p)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user