Skip to content

Commit

Permalink
change multiline info and debug statements to inline
Browse files Browse the repository at this point in the history
  • Loading branch information
Keksoj committed Aug 7, 2024
1 parent d45227e commit daa5c02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/src/command/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl CommandHub {
let id = self.next_client_id();
let session = ClientSession::new(channel, id, token);
info!("Register new client: {}", id);
debug!("{:#?}", session);
debug!("registering client {:?}", session);
self.clients.insert(token, session);
}

Expand Down Expand Up @@ -295,7 +295,7 @@ impl CommandHub {
/// - manage timeouts of tasks
pub fn run(&mut self) {
let mut events = Events::with_capacity(100);
debug!("running the command hub: {:#?}", self);
debug!("running the command hub: {:?}", self);

loop {
let run_state = self.run_state;
Expand Down Expand Up @@ -401,7 +401,7 @@ impl CommandHub {
}
ClientResult::CloseSession => {
info!("Closing client {}", client.id);
debug!("{:#?}", client);
debug!("closing client {:?}", client);
self.event_subscribers.remove(&token);
self.clients.remove(&token);
}
Expand Down
4 changes: 2 additions & 2 deletions command/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1375,8 +1375,8 @@ impl ConfigBuilder {
frontend.key.clone_from(&https_listener.key);
}
if frontend.certificate.is_none() {
debug!("known addresses: {:#?}", self.known_addresses);
debug!("frontend: {:#?}", frontend);
debug!("known addresses: {:?}", self.known_addresses);
debug!("frontend: {:?}", frontend);
return Err(ConfigError::WrongFrontendProtocol(
ListenerProtocol::Https,
));
Expand Down
2 changes: 1 addition & 1 deletion command/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ impl ConfigState {
/// Types like `HttpFrontend` are converted into protobuf ones, like `RequestHttpFrontend`
pub fn cluster_state(&self, cluster_id: &str) -> Option<ClusterInformation> {
let configuration = self.clusters.get(cluster_id).cloned()?;
info!("{:#?}", configuration);
info!("{:?}", configuration);

let http_frontends: Vec<RequestHttpFrontend> = self
.http_fronts
Expand Down

0 comments on commit daa5c02

Please sign in to comment.