diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2024-08-09 23:12:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-09 23:12:12 +0200 |
commit | d679e05049db1e70c40923aac6cefccd3fbe9ca0 (patch) | |
tree | 834c5fb41c20b3029b118ee62f1bde15eb0869d4 /primedev/logging | |
parent | 59d19a8b539801b0b0ed614f343f12d22a762f07 (diff) | |
parent | a28c1cb10cc805907d22b656ccc300b39b720a88 (diff) | |
download | NorthstarLauncher-d679e05049db1e70c40923aac6cefccd3fbe9ca0.tar.gz NorthstarLauncher-d679e05049db1e70c40923aac6cefccd3fbe9ca0.zip |
Merge branch 'main' into feat/whitelist-safeio-file-extensions
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; }; |