mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-06 01:15:32 +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 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…
Reference in a new issue