diff options
| author | Alexander Seleznev <selya.main@gmail.com> | 2023-10-15 21:19:07 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-15 19:19:07 +0100 |
| commit | 1f582457cfdea7f2d0d2028f7b3dbabbebd0e164 (patch) | |
| tree | ead186c5950c6a72b02c6d788be78cd92b8f17dc /src/debug/Log.cpp | |
| parent | 442209942fdedbdded6362cafed736c327da0e1c (diff) | |
Debug: respect logging settings for wlr (#3584)
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; |
