Enable logging of avatar uploads

This commit is contained in:
lotodore
2009-04-25 18:33:01 +00:00
parent 08865fd934
commit bdb6e9f22f
+2 -1
View File
@@ -729,6 +729,8 @@ ServerLobbyThread::HandleNetPacketAvatarEnd(SessionWrapper session, const NetPac
session.playerData->SetAvatarFile(avatarFileName);
// Init finished - start session.
EstablishSession(session);
LOG_MSG("Client \"" << session.sessionData->GetClientAddr() << "\" uploaded avatar \""
<< boost::filesystem::path(avatarFileName).file_string() << "\".");
}
else
SessionError(session, ERR_NET_WRONG_AVATAR_SIZE);
@@ -1195,7 +1197,6 @@ ServerLobbyThread::HandleNewConnection(boost::shared_ptr<ConnectData> connData)
tmpAddress[sizeof(tmpAddress) - 1] = 0; // paranoia
sessionData->SetClientAddr(tmpAddress);
}
LOG_MSG("Client address: " << sessionData->GetClientAddr());
}
else
{