Debug: respect logging settings for wlr (#3584)

This commit is contained in:
Alexander Seleznev 2023-10-15 21:19:07 +03:00 committed by GitHub
parent 442209942f
commit 1f582457cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,12 @@ void Debug::init(const std::string& IS) {
} }
void Debug::wlrLog(wlr_log_importance level, const char* fmt, va_list args) { 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; char* outputStr = nullptr;
std::ofstream ofs; std::ofstream ofs;