Skip to content

Commit

Permalink
Lower dispatcher log to debug (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
vertexclique authored Mar 21, 2021
1 parent 93b66e4 commit c8f1506
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bastion/src/dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use std::sync::{
atomic::{AtomicUsize, Ordering},
Arc,
};
use tracing::{debug, trace, warn};
use tracing::{debug, trace};

/// Type alias for the concurrency hashmap. Each key-value pair stores
/// the Bastion identifier as the key and the module name as the value.
Expand Down Expand Up @@ -92,7 +92,7 @@ impl DispatcherHandler for RoundRobinHandler {
let current_index = self.index.load(Ordering::SeqCst) % entries.len();

if let Some(entry) = entries.get(current_index) {
warn!(
debug!(
"sending message to child {}/{} - {}",
current_index + 1,
entries.len(),
Expand Down Expand Up @@ -354,7 +354,7 @@ impl GlobalDispatcher {
// TODO: Put the message into the dead queue
None => {
let name = dispatcher_type.name();
warn!(
debug!(
"The message can't be delivered to the group with the '{}' name.",
name
);
Expand All @@ -369,7 +369,7 @@ impl GlobalDispatcher {
let is_registered = self.dispatchers.contains_key(&dispatcher_type);

if is_registered && dispatcher_type != DispatcherType::Anonymous {
warn!(
debug!(
"The dispatcher with the '{:?}' name already registered in the cluster.",
dispatcher_type
);
Expand Down

0 comments on commit c8f1506

Please sign in to comment.