diff options
Diffstat (limited to 'primedev/logging')
-rw-r--r-- | primedev/logging/logging.cpp | 6 | ||||
-rw-r--r-- | primedev/logging/sourceconsole.h | 2 |
2 files changed, 2 insertions, 6 deletions
diff --git a/primedev/logging/logging.cpp b/primedev/logging/logging.cpp index 72171e25..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 (AllocConsole() == FALSE) - { - std::cout << "[*] Failed to create a console window, maybe a console already exists?" << std::endl; - } - else + if (AllocConsole() != FALSE) { freopen("CONOUT$", "w", stdout); freopen("CONOUT$", "w", stderr); diff --git a/primedev/logging/sourceconsole.h b/primedev/logging/sourceconsole.h index 44d73843..215dae1a 100644 --- a/primedev/logging/sourceconsole.h +++ b/primedev/logging/sourceconsole.h @@ -77,7 +77,7 @@ private: {spdlog::level::off, NS::Colors::OFF.ToSourceColor()}}; protected: - void custom_sink_it_(const custom_log_msg& msg); + void custom_sink_it_(const custom_log_msg& msg) override; void sink_it_(const spdlog::details::log_msg& msg) override; void flush_() override; }; |