diff options
author | hozan23 <hozan23@karyontech.net> | 2024-05-22 18:02:51 +0200 |
---|---|---|
committer | hozan23 <hozan23@karyontech.net> | 2024-05-22 18:02:51 +0200 |
commit | 5df6812dd2254b871eb773dc626b89646ca87495 (patch) | |
tree | 18828be9c86aba205d30086f705f2c6e2aeee975 /core/src | |
parent | c2860d3266aa1233787400b163d527fdc7dafe61 (diff) |
p2p: monitor system use core::EventSys instead of pubsub pattern
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/event.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/src/event.rs b/core/src/event.rs index e8692ef..876fda5 100644 --- a/core/src/event.rs +++ b/core/src/event.rs @@ -104,7 +104,10 @@ where let mut topics = self.listeners.lock().await; if !topics.contains_key(topic) { - error!("Failed to emit an event to a non-existent topic"); + trace!( + "Failed to emit an event to a non-existent topic {:?}", + topic + ); return; } @@ -112,7 +115,10 @@ where let event_id = E::id().to_string(); if !event_ids.contains_key(&event_id) { - error!("Failed to emit an event to a non-existent event id"); + trace!( + "Failed to emit an event to a non-existent event id: {:?}", + event_id + ); return; } |