From 6c4dbff1ec2b688f64a910f676f62bccdd14c203 Mon Sep 17 00:00:00 2001 From: Gabriel Bastos Date: Sun, 3 Jul 2022 22:11:10 -0300 Subject: [PATCH] Improve log verbosity --- src/event_streamer.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/event_streamer.rs b/src/event_streamer.rs index c1d69b7..d74f915 100644 --- a/src/event_streamer.rs +++ b/src/event_streamer.rs @@ -95,7 +95,9 @@ where { match result { Ok(event) => { - log::info!("Event: {}", std::any::type_name::()); + let type_name = std::any::type_name::(); + let name = type_name.rsplit("::").next().unwrap_or(type_name); + log::info!("Event: {}", name); Some(event) } Err(error) => {