From c83948ea9aa53e893ef3e98f1c84426aced422fd Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 22 Aug 2022 15:50:02 +0200 Subject: [PATCH] added HYPRLAND_LOG_WLR envvar --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 9367d870..86c5da21 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -44,6 +44,10 @@ int main(int argc, char** argv) { std::cout << "Welcome to Hyprland!\n"; + const auto LOGWLR = getenv("HYPRLAND_LOG_WLR"); + if (LOGWLR && std::string(LOGWLR) == "1") + wlr_log_init(WLR_DEBUG, nullptr); + // let's init the compositor. // it initializes basic Wayland stuff in the constructor. g_pCompositor = std::make_unique();