mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-29 22:05:58 +01:00
log: log wlr errors regardless of env
This commit is contained in:
parent
b8f8912db2
commit
a05076a7ee
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ void CCompositor::initServer() {
|
||||||
const auto LOGWLR = getenv("HYPRLAND_LOG_WLR");
|
const auto LOGWLR = getenv("HYPRLAND_LOG_WLR");
|
||||||
if (LOGWLR && std::string(LOGWLR) == "1")
|
if (LOGWLR && std::string(LOGWLR) == "1")
|
||||||
wlr_log_init(WLR_DEBUG, Debug::wlrLog);
|
wlr_log_init(WLR_DEBUG, Debug::wlrLog);
|
||||||
|
else
|
||||||
|
wlr_log_init(WLR_ERROR, Debug::wlrLog);
|
||||||
|
|
||||||
m_sWLRBackend = wlr_backend_autocreate(m_sWLDisplay, &m_sWLRSession);
|
m_sWLRBackend = wlr_backend_autocreate(m_sWLDisplay, &m_sWLRSession);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue