diff options
Diffstat (limited to 'src/debug/Log.cpp')
| -rw-r--r-- | src/debug/Log.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/debug/Log.cpp b/src/debug/Log.cpp index 8850a0af..98eeebc9 100644 --- a/src/debug/Log.cpp +++ b/src/debug/Log.cpp @@ -10,6 +10,12 @@ void Debug::init(const std::string& IS) { } void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) { + if (disableLogs && *disableLogs) + return; + + if (level > wlr_log_get_verbosity()) + return; + char* outputStr = nullptr; std::ofstream ofs; |
