[Server] Log startup errors by not deleting logger too early

0.6.1
David Cernat 7 years ago
parent a883c8f8aa
commit 92553b8e29

@ -71,7 +71,6 @@ Networking::~Networking()
delete playerPacketController;
delete actorPacketController;
delete worldPacketController;
LOG_QUIT();
}
void Networking::setServerPassword(std::string passw) noexcept

@ -332,6 +332,8 @@ int main(int argc, char *argv[])
if (code == 0)
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Quitting peacefully.");
LOG_QUIT();
if (!variables["no-logs"].as<bool>())
{
// Restore cout and cerr

Loading…
Cancel
Save