mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:45:58 +01:00
Debug: respect logging settings for wlr (#3584)
This commit is contained in:
parent
442209942f
commit
1f582457cf
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue