aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/debug/Log.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-24 13:00:54 +0000
committervaxerski <[email protected]>2023-03-24 13:00:54 +0000
commite73c6fd3b03492760aa3787794d16c3fcf5458bf (patch)
treeea295353f9b7010de2a2466c7f6b1effd913da14 /src/debug/Log.cpp
parenta5a0434fffcd1b691506f694e5e9f9091b859a85 (diff)
downloadHyprland-e73c6fd3b03492760aa3787794d16c3fcf5458bf.tar.gz
Hyprland-e73c6fd3b03492760aa3787794d16c3fcf5458bf.zip
logs: disable stdout after init
Diffstat (limited to 'src/debug/Log.cpp')
-rw-r--r--src/debug/Log.cpp3
1 files changed, 2 insertions, 1 deletions
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";
}