From ed151e6d45d28814a6a8bf40e73b70e980283eda Mon Sep 17 00:00:00 2001 From: cooltrain7 Date: Mon, 13 Dec 2021 01:33:51 +0000 Subject: [PATCH] Added extra information to connection log - Added correct class name to log calls - Added extra zone and instance information in ambiguous log call --- dNet/dServer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dNet/dServer.cpp b/dNet/dServer.cpp index 2a9a612e..245b7683 100644 --- a/dNet/dServer.cpp +++ b/dNet/dServer.cpp @@ -104,13 +104,13 @@ Packet* dServer::ReceiveFromMaster() { if (packet->length < 1) { mMasterPeer->DeallocatePacket(packet); return nullptr; } if (packet->data[0] == ID_DISCONNECTION_NOTIFICATION || packet->data[0] == ID_CONNECTION_LOST) { - mLogger->Log("Server", "Lost our connection to master, shutting DOWN!\n"); + mLogger->Log("dServer", "Lost our connection to master, shutting DOWN!\n"); mMasterConnectionActive = false; //ConnectToMaster(); //We'll just shut down now } if (packet->data[0] == ID_CONNECTION_REQUEST_ACCEPTED) { - mLogger->Log("Server", "Established connection to master\n"); + mLogger->Log("dServer", "Established connection to master, zone (%i), instance (%i)\n",this->GetZoneID(), this->GetInstanceID()); mMasterConnectionActive = true; mMasterSystemAddress = packet->systemAddress; MasterPackets::SendServerInfo(this, packet); @@ -147,7 +147,7 @@ Packet* dServer::ReceiveFromMaster() { } default: - mLogger->Log("Server", "Unknown packet ID from master: %i\n", packet->data[3]); + mLogger->Log("dServer", "Unknown packet ID from master: %i\n", packet->data[3]); } } }