From 1f582457cfdea7f2d0d2028f7b3dbabbebd0e164 Mon Sep 17 00:00:00 2001 From: Alexander Seleznev Date: Sun, 15 Oct 2023 21:19:07 +0300 Subject: [PATCH] Debug: respect logging settings for wlr (#3584) --- src/debug/Log.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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;