From 0d5ef404f6f6e1ccf4ede0f64f89e1dff23ae80d Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Tue, 31 Aug 2021 12:30:01 +0300 Subject: [PATCH] Sentry: ensure user is set up before version check --- Changelog.md | 7 ++++++- src/main.cpp | 11 +---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/Changelog.md b/Changelog.md index 9390e5c..60e0daa 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,7 +1,12 @@ # v2.3.0 +- ADDED version check - the server will now let you know when a new release is out - ADDED logging of various errors, crashes and exceptions to the backend -- ADDED `[CHAT]` messages to server console +- ADDED chat messages are now logged to the server console as [CHAT] +- ADDED debug message telling you when the server heartbeats to the backend +- REMOVED various [DEBUG] messages which were confusing (such as "breaking client loop") +- FIXED various crashes and issues with handling unexpected backend responses +- FIXED minor bugs due to code correctness # v2.2.0 diff --git a/src/main.cpp b/src/main.cpp index e9620f9..7c28570 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -62,17 +62,7 @@ int main(int argc, char** argv) try { bool Shutdown = false; Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; }); - Assert(!Application::IsOutdated(std::array { 1, 0, 0 }, std::array { 1, 0, 0 })); - Assert(!Application::IsOutdated(std::array { 1, 0, 1 }, std::array { 1, 0, 0 })); - Assert(Application::IsOutdated(std::array { 1, 0, 0 }, std::array { 1, 0, 1 })); - Assert(Application::IsOutdated(std::array { 1, 0, 0 }, std::array { 1, 1, 0 })); - Assert(Application::IsOutdated(std::array { 1, 0, 0 }, std::array { 2, 0, 0 })); - Assert(!Application::IsOutdated(std::array { 2, 0, 0 }, std::array { 1, 0, 1 })); - TServer Server(argc, argv); - - Application::CheckForUpdates(); - TConfig Config; if (Config.Failed()) { @@ -87,6 +77,7 @@ int main(int argc, char** argv) try { Sentry.SetupUser(); Sentry.PrintWelcome(); + Application::CheckForUpdates(); TResourceManager ResourceManager; TPPSMonitor PPSMonitor(Server); THeartbeatThread Heartbeat(ResourceManager, Server);