diff --git a/src/network/event.cpp b/src/network/event.cpp index bb5e13e6d..cbb11be8f 100644 --- a/src/network/event.cpp +++ b/src/network/event.cpp @@ -64,6 +64,7 @@ Event::Event(ENetEvent* event) if (peers[i]->m_peer == event->peer) { *peer = peers[i]; + Log::info("Event", "The peer you sought has been found on %lx", (long int)(peer)); return; } } diff --git a/src/network/network_manager.cpp b/src/network/network_manager.cpp index 701cdc08b..e3753a916 100644 --- a/src/network/network_manager.cpp +++ b/src/network/network_manager.cpp @@ -93,6 +93,7 @@ void NetworkManager::notifyEvent(Event* event) if (event->type == EVENT_TYPE_CONNECTED) { Log::info("NetworkManager", "A client has just connected. There are now %lu peers.", m_peers.size() + 1); + Log::info("NetworkManager", "Addresses are : %lx, %lx, %lx", event->peer, *event->peer, peer); // create the new peer: m_peers.push_back(peer); }