diff --git a/Cargo.lock b/Cargo.lock index 3f836a3..4e4c61e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -205,7 +205,7 @@ dependencies = [ [[package]] name = "notifykit_lib" -version = "0.0.2" +version = "0.0.4" dependencies = [ "crossbeam-channel", "crossbeam-utils", diff --git a/Cargo.toml b/Cargo.toml index c97fa63..6242202 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "notifykit_lib" -version = "0.0.3" +version = "0.0.4" edition = "2021" license = "A toolkit for building applications watching filesystem changes" homepage = "https://github.com/roma-glushko/notifykit" diff --git a/pyproject.toml b/pyproject.toml index c37f75d..6cd25eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "notifykit" -version = "0.0.3" +version = "0.0.4" description = "A modern efficient Python toolkit for building applications that need to watch filesystem changes" authors = [ {name = "Roman Glushko", email = "roman.glushko.m@gmail.com"}, diff --git a/src/watcher.rs b/src/watcher.rs index 05d4c97..b37ae03 100644 --- a/src/watcher.rs +++ b/src/watcher.rs @@ -48,6 +48,10 @@ impl Watcher { move |e: Result| { let mut event_processor = processor_c.lock().unwrap(); + if debug { + println!("raw event: {:?}", e); + } + match e { Ok(e) => event_processor.add_event(e), Err(e) => event_processor.add_error(e), @@ -161,7 +165,7 @@ impl Watcher { } if !raw_events.is_empty() && self.debug { - println!("raw_events: {:?}", raw_events); + println!("processed events: {:?}", raw_events); } if !errors.is_empty() {