Added debug print for events in server socket.

This commit is contained in:
Revertron
2021-04-02 12:59:03 +02:00
parent 588ac6ae00
commit 905bb9e734
+1
View File
@@ -76,6 +76,7 @@ impl Network {
// We can use the token we previously provided to `register` to determine for which socket the event is.
match event.token() {
SERVER => {
debug!("Event for server socket {} is {:?}", event.token().0, &event);
// If this is an event for the server, it means a connection is ready to be accepted.
let connection = server.accept();
match connection {