Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lower dispatcher log to debug #315

Merged
merged 2 commits into from
Mar 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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