aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-05-27 00:48:15 +0200
committerhozan23 <hozan23@karyontech.net>2024-05-27 00:48:15 +0200
commit3acb724ba1aafeaf37e24dada7c769bb4066444a (patch)
treede80b01229ce133334176694571fbdf4a49402b6 /core
parente022b2b77e3e98f0f444f637f96e74e6a6f990cf (diff)
net: add serde feature for serializing & deserializing Endpoints
Diffstat (limited to 'core')
-rw-r--r--core/src/event.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/event.rs b/core/src/event.rs
index a32677b..f7e3430 100644
--- a/core/src/event.rs
+++ b/core/src/event.rs
@@ -7,7 +7,7 @@ use std::{
use async_channel::{Receiver, Sender};
use chrono::{DateTime, Utc};
-use log::{error, trace};
+use log::{error, debug};
use crate::{async_runtime::lock::Mutex, util::random_16, Result};
@@ -104,7 +104,7 @@ where
let mut topics = self.listeners.lock().await;
if !topics.contains_key(topic) {
- trace!(
+ debug!(
"Failed to emit an event to a non-existent topic {:?}",
topic
);
@@ -115,7 +115,7 @@ where
let event_id = E::id().to_string();
if !event_ids.contains_key(&event_id) {
- trace!(
+ debug!(
"Failed to emit an event to a non-existent event id: {:?}",
event_id
);
@@ -127,7 +127,7 @@ where
let listeners = event_ids.get_mut(&event_id).unwrap();
for (listener_id, listener) in listeners.iter() {
if let Err(err) = listener.send(event.clone()).await {
- trace!("Failed to emit event for topic {:?}: {}", topic, err);
+ debug!("Failed to emit event for topic {:?}: {}", topic, err);
failed_listeners.push(*listener_id);
}
}