Skip to content

Commit

Permalink
Improve log verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
gahag-cw committed Jul 4, 2022
1 parent 05bd8ba commit 6c4dbff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/event_streamer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ where
{
match result {
Ok(event) => {
log::info!("Event: {}", std::any::type_name::<T>());
let type_name = std::any::type_name::<T>();
let name = type_name.rsplit("::").next().unwrap_or(type_name);
log::info!("Event: {}", name);
Some(event)
}
Err(error) => {
Expand Down

0 comments on commit 6c4dbff

Please sign in to comment.