From 92553b8e292b911029bee04fa9a9ca1d23a6c82d Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 29 Aug 2017 19:30:37 +0300 Subject: [PATCH] [Server] Log startup errors by not deleting logger too early --- apps/openmw-mp/Networking.cpp | 1 - apps/openmw-mp/main.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 3b3380702..2b8da2b92 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -71,7 +71,6 @@ Networking::~Networking() delete playerPacketController; delete actorPacketController; delete worldPacketController; - LOG_QUIT(); } void Networking::setServerPassword(std::string passw) noexcept diff --git a/apps/openmw-mp/main.cpp b/apps/openmw-mp/main.cpp index 273d833dc..342c77eda 100644 --- a/apps/openmw-mp/main.cpp +++ b/apps/openmw-mp/main.cpp @@ -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()) { // Restore cout and cerr