summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-22 15:50:02 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-08-22 15:50:08 +0200
commitc83948ea9aa53e893ef3e98f1c84426aced422fd (patch)
treefd823df2948e573c118fbd9f14fd569a9f48ebd6 /src
parent8a6e29974b4339abc868af80761849b52c98cc40 (diff)
added HYPRLAND_LOG_WLR envvar
Diffstat (limited to 'src')
-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>();