summaryrefslogtreecommitdiff
path: root/src/debug/Log.cpp
diff options
context:
space:
mode:
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";
}