summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-06-26 21:03:36 +0100
committertcmal <me@aria.rip>2024-06-26 21:51:48 +0100
commit6785d154460921cc3b774376a676a226402d8270 (patch)
tree865544599227908a77e0f6ef1b00e03ca382f567 /src/main.rs
parentf7f0df71657df790259f5358617901cf4142faf9 (diff)
add logging macros for debug mode only printing
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 83cabd4..3de3df9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -41,6 +41,7 @@ mod error;
#[doc(hidden)]
mod focus;
pub mod keys;
+pub mod log;
fn main() -> Result<()> {
cleanup_process_children();
@@ -79,10 +80,7 @@ impl<'a> WM<'a> {
loop {
match self.conn.wait_for_event() {
Ok(x) => {
- #[cfg(debug_assertions)]
- {
- eprintln!("received event: {x:?}");
- };
+ debug!("received event: {x:?}");
match x {
// See keys.rs