From 0f083113c92ce229ad2e573b06bee75e251771e3 Mon Sep 17 00:00:00 2001 From: Quentin Date: Fri, 9 Feb 2024 22:02:30 +0100 Subject: [PATCH] feat(log): print if debug build (#2695) --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 12589c5c..33940416 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -104,6 +104,10 @@ BOOL APIENTRY DllMain(HMODULE hmod, DWORD reason, PVOID) LOG(INFO) << "Yim's Menu Initializing"; LOGF(INFO, "Git Info\n\tBranch:\t{}\n\tHash:\t{}\n\tDate:\t{}", version::GIT_BRANCH, version::GIT_SHA1, version::GIT_DATE); +#ifndef NDEBUG + LOG(WARNING) << "Debug Build. Switch to RelWithDebInfo or Release Build for a more stable experience"; +#endif + auto thread_pool_instance = std::make_unique(); LOG(INFO) << "Thread pool initialized.";