|
@@ -1,6 +1,6 @@
|
|
|
use async_std::sync::Mutex;
|
|
use async_std::sync::Mutex;
|
|
|
use async_trait::async_trait;
|
|
use async_trait::async_trait;
|
|
|
-use log::*;
|
|
|
|
|
|
|
+use log::{debug, error, warn};
|
|
|
use rand::Rng;
|
|
use rand::Rng;
|
|
|
use std::{any::Any, collections::HashMap, io, io::Cursor, sync::Arc};
|
|
use std::{any::Any, collections::HashMap, io, io::Cursor, sync::Arc};
|
|
|
|
|
|
|
@@ -87,6 +87,7 @@ impl<M: Message> MessageDispatcher<M> {
|
|
|
/// channels.
|
|
/// channels.
|
|
|
async fn trigger_all(&self, message: MessageResult<M>) {
|
|
async fn trigger_all(&self, message: MessageResult<M>) {
|
|
|
debug!(
|
|
debug!(
|
|
|
|
|
+ target: "net",
|
|
|
"MessageDispatcher<M={}>::trigger_all({}) [START, subs={}]",
|
|
"MessageDispatcher<M={}>::trigger_all({}) [START, subs={}]",
|
|
|
M::name(),
|
|
M::name(),
|
|
|
if message.is_ok() { "msg" } else { "err" },
|
|
if message.is_ok() { "msg" } else { "err" },
|
|
@@ -109,6 +110,7 @@ impl<M: Message> MessageDispatcher<M> {
|
|
|
self.collect_garbage(garbage_ids).await;
|
|
self.collect_garbage(garbage_ids).await;
|
|
|
|
|
|
|
|
debug!(
|
|
debug!(
|
|
|
|
|
+ target: "net",
|
|
|
"MessageDispatcher<M={}>::trigger_all({}) [END, subs={}]",
|
|
"MessageDispatcher<M={}>::trigger_all({}) [END, subs={}]",
|
|
|
M::name(),
|
|
M::name(),
|
|
|
if message.is_ok() { "msg" } else { "err" },
|
|
if message.is_ok() { "msg" } else { "err" },
|