summaryrefslogtreecommitdiff
path: root/src/debug/Log.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-01 15:57:56 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-07-01 15:57:56 +0200
commit868e0f48d023714a205acf071594983d22d1478c (patch)
treea9dd9de8569f3c9520e5b438324325144779f4f8 /src/debug/Log.cpp
parent1750a7cdbbccac32b7df2c9a672d5603740b4787 (diff)
added debug:disable_logs
Diffstat (limited to 'src/debug/Log.cpp')
-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 a864f0d2..2fa4a127 100644
--- a/src/debug/Log.cpp
+++ b/src/debug/Log.cpp
@@ -14,6 +14,9 @@ void Debug::init(std::string IS) {
void Debug::log(LogLevel level, const char* fmt, ...) {
+ if (disableLogs && *disableLogs)
+ return;
+
// log to a file
std::ofstream ofs;
ofs.open(logFile, std::ios::out | std::ios::app);