log: log wlr errors regardless of env

This commit is contained in:
vaxerski 2023-09-30 13:07:20 +01:00
parent b8f8912db2
commit a05076a7ee

View file

@ -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);