Log error code upon accept failure

pull/71/head
Eugene Kim 6 years ago
parent 560cfa8b15
commit bf44dce3c6
  1. 3
      node/node.go

@ -96,7 +96,8 @@ func (node *Node) listenOnPort(port string) {
for {
conn, err := listen.Accept()
if err != nil {
node.log.Error("Error listening on port.", "port", port)
node.log.Error("Error listening on port.", "port", port,
"err", err)
continue
}
go node.NodeHandler(conn)

Loading…
Cancel
Save