From e73c6fd3b03492760aa3787794d16c3fcf5458bf Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 24 Mar 2023 13:00:54 +0000 Subject: logs: disable stdout after init --- src/debug/Log.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/debug/Log.cpp') diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 7800b831..8b1a8fab 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -75,5 +75,6 @@ void Debug::log(LogLevel level, const char* fmt, ...) { ofs.close(); // log it to the stdout too. - std::cout << output << "\n"; + if (!disableStdout) + std::cout << output << "\n"; } -- cgit v1.2.3