From c4055830dd03ab3df11071bdf1f1f6410c79e055 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Sun, 28 Jul 2024 13:14:09 +0100 Subject: [PATCH] Fix logging sometimes not working (#754) Revert #741 and remove log message since it's not a big deal --- primedev/logging/logging.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/primedev/logging/logging.cpp b/primedev/logging/logging.cpp index 4367b384b..6d71eea0a 100644 --- a/primedev/logging/logging.cpp +++ b/primedev/logging/logging.cpp @@ -124,11 +124,7 @@ void CustomSink::custom_log(const custom_log_msg& msg) void InitialiseConsole() { - if (GetConsoleWindow() == NULL && AllocConsole() == FALSE) - { - std::cout << "[*] Failed to create a console window" << std::endl; - } - else + if (AllocConsole() != FALSE) { freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr);