Add more descriptive log message in P2PClient when we get disconnectd (#1514)

This commit is contained in:
Chris Stewart 2020-06-04 16:25:04 -05:00 committed by GitHub
parent 34255d8de7
commit aaa750b23a

View File

@ -168,8 +168,7 @@ case class P2PClientActor(
case closeCmd @ (Tcp.ConfirmedClosed | Tcp.Closed | Tcp.Aborted |
Tcp.PeerClosed) =>
logger.debug(s"Closed command received: ${closeCmd}")
logger.info(s"We've been disconnected by $peer command=${closeCmd}")
//tell our peer message handler we are disconnecting
val newPeerMsgRecv = currentPeerMsgHandlerRecv.disconnect()