summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
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