aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-24 19:38:09 +0000
committervaxerski <[email protected]>2023-03-24 19:38:09 +0000
commitcc2c270ddeb8df25e05016e6cebd6512f56835ee (patch)
treec41e64302e0d62682c8177d1c56dc15457e32fc5
parent70e3cb815177df9742ae8318a5a4e38d1e273054 (diff)
downloadHyprland-cc2c270ddeb8df25e05016e6cebd6512f56835ee.tar.gz
Hyprland-cc2c270ddeb8df25e05016e6cebd6512f56835ee.zip
log: log wlr logs to stdout
-rw-r--r--src/debug/Log.cpp3
1 files changed, 3 insertions, 0 deletions
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, ...) {