Added debug print for events in server socket.
This commit is contained in:
@@ -76,6 +76,7 @@ impl Network {
|
|||||||
// We can use the token we previously provided to `register` to determine for which socket the event is.
|
// We can use the token we previously provided to `register` to determine for which socket the event is.
|
||||||
match event.token() {
|
match event.token() {
|
||||||
SERVER => {
|
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.
|
// If this is an event for the server, it means a connection is ready to be accepted.
|
||||||
let connection = server.accept();
|
let connection = server.accept();
|
||||||
match connection {
|
match connection {
|
||||||
|
|||||||
Reference in New Issue
Block a user