add id to debug thread id print

This commit is contained in:
Lion Kortlepel 2021-03-30 01:44:32 +02:00
parent 9c9f503e5c
commit dd5b0bdd6d

View File

@ -296,7 +296,7 @@ void TNetwork::Authentication(SOCKET TCPSock) {
return;
}
RegisterThread(Client->GetName());
RegisterThread("(" + std::to_string(Client->GetID()) + ") " + Client->GetName());
debug("Name -> " + Client->GetName() + ", Guest -> " + std::to_string(Client->IsGuest()) + ", Roles -> " + Client->GetRoles());
debug("There are " + std::to_string(mServer.ClientCount()) + " known clients");
mServer.ForEachClient([&](const std::weak_ptr<TClient>& ClientPtr) -> bool {