mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
Debug: respect logging settings for wlr (#3584)
This commit is contained in:
committed by
GitHub
parent
442209942f
commit
1f582457cf
@@ -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;
|
||||||
|
Reference in New Issue
Block a user