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
1 changed files with 6 additions and 0 deletions

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) {
if (disableLogs && *disableLogs)
return;
if (level > wlr_log_get_verbosity())
return;
char* outputStr = nullptr;
std::ofstream ofs;