diff options
Diffstat (limited to 'primedev/logging')
-rw-r--r-- | primedev/logging/logging.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/primedev/logging/logging.cpp b/primedev/logging/logging.cpp index 4367b384..6d71eea0 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); |