From 3acb724ba1aafeaf37e24dada7c769bb4066444a Mon Sep 17 00:00:00 2001 From: hozan23 Date: Mon, 27 May 2024 00:48:15 +0200 Subject: net: add serde feature for serializing & deserializing Endpoints --- core/src/event.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src') 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); } } -- cgit v1.2.3