From cc2c270ddeb8df25e05016e6cebd6512f56835ee Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 24 Mar 2023 19:38:09 +0000 Subject: [PATCH] log: log wlr logs to stdout --- src/debug/Log.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 8b1a8fab..8c537c3f 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -23,6 +23,9 @@ void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) { ofs << "[wlr] " << output << "\n"; ofs.close(); + + if (!disableStdout) + std::cout << output << "\n"; } void Debug::log(LogLevel level, const char* fmt, ...) {