add additonal log message in node/node_handler

Signed-off-by: Leo Chen <leo@harmony.one>
pull/82/head
Leo Chen 6 years ago
parent b718020a36
commit b6c54e8f34
  1. 2
      node/node.go
  2. 6
      node/node_handler.go

@ -86,7 +86,7 @@ func (node *Node) StartServer(port string) {
// Disable this temporarily.
// node.blockchain = syncing.StartBlockSyncing(node.Consensus.GetValidatorPeers())
}
fmt.Println("going to start server")
fmt.Println("going to start server on port:", port)
//node.log.Debug("Starting server", "node", node, "port", port)
node.listenOnPort(port)
}

@ -194,6 +194,8 @@ func (node *Node) NodeHandler(conn net.Conn) {
node.Client.TransactionMessageHandler(msgPayload)
}
}
default:
node.log.Error("Unknown", "MsgCateory:", msgCategory)
}
}
@ -455,7 +457,7 @@ func (node *Node) pingMessageHandler(msgPayload []byte) {
node.log.Error("Can't get Ping Message")
return
}
node.log.Info("Ping: %v", ping)
node.log.Info("Ping", "Msg", ping)
return
}
@ -465,6 +467,6 @@ func (node *Node) pongMessageHandler(msgPayload []byte) {
node.log.Error("Can't get Pong Message")
return
}
node.log.Info("Pong: %v", pong)
node.log.Info("Pong", "Msg", pong)
return
}

Loading…
Cancel
Save