From b059641527519266091de337db41f214709fd97b Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 21 Mar 2024 18:45:08 -0500 Subject: [PATCH] main: add debugging --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 606944d..661b9f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use directories::{BaseDirs, ProjectDirs, UserDirs}; +use directories::ProjectDirs; use std::env; use std::fs::File; use std::io::Read; @@ -21,6 +21,9 @@ pub struct Config { #[tokio::main] async fn main() -> Result<(), Box> { + std::env::set_var("RUST_LOG", "debug"); + std::env::set_var("RUST_BACKTRACE", "1"); + // Get the socket path from the environment variable let hyprland_instance_signature = env::var("HYPRLAND_INSTANCE_SIGNATURE")?;