From 5df6812dd2254b871eb773dc626b89646ca87495 Mon Sep 17 00:00:00 2001 From: hozan23 Date: Wed, 22 May 2024 18:02:51 +0200 Subject: p2p: monitor system use core::EventSys instead of pubsub pattern --- core/src/event.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'core') 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; } -- cgit v1.2.3