mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
[Server] Log startup errors by not deleting logger too early
This commit is contained in:
parent
a883c8f8aa
commit
92553b8e29
2 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,6 @@ Networking::~Networking()
|
||||||
delete playerPacketController;
|
delete playerPacketController;
|
||||||
delete actorPacketController;
|
delete actorPacketController;
|
||||||
delete worldPacketController;
|
delete worldPacketController;
|
||||||
LOG_QUIT();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Networking::setServerPassword(std::string passw) noexcept
|
void Networking::setServerPassword(std::string passw) noexcept
|
||||||
|
|
|
@ -332,6 +332,8 @@ int main(int argc, char *argv[])
|
||||||
if (code == 0)
|
if (code == 0)
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Quitting peacefully.");
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Quitting peacefully.");
|
||||||
|
|
||||||
|
LOG_QUIT();
|
||||||
|
|
||||||
if (!variables["no-logs"].as<bool>())
|
if (!variables["no-logs"].as<bool>())
|
||||||
{
|
{
|
||||||
// Restore cout and cerr
|
// Restore cout and cerr
|
||||||
|
|
Loading…
Reference in a new issue