aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-22 15:50:02 +0200
committervaxerski <[email protected]>2022-08-22 15:50:08 +0200
commitc83948ea9aa53e893ef3e98f1c84426aced422fd (patch)
treefd823df2948e573c118fbd9f14fd569a9f48ebd6
parent8a6e29974b4339abc868af80761849b52c98cc40 (diff)
downloadHyprland-c83948ea9aa53e893ef3e98f1c84426aced422fd.tar.gz
Hyprland-c83948ea9aa53e893ef3e98f1c84426aced422fd.zip
added HYPRLAND_LOG_WLR envvar
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
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<CCompositor>();