diff options
Diffstat (limited to 'src/debug/Log.cpp')
| -rw-r--r-- | src/debug/Log.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 8d84840e..e70617d3 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -71,6 +71,8 @@ void Debug::log(eLogLevel level, std::string str) { } // log it to the stdout too. - if (!m_disableStdout) + if (!m_disableStdout) { std::println("{}", ((m_coloredLogs && !**m_coloredLogs) ? str : coloredStr)); + std::fflush(stdout); + } } |
