ws: add some info level logging

This commit is contained in:
Joakim Frostegård 2022-07-19 23:45:15 +02:00
parent 809aa4def9
commit b79636730c
2 changed files with 8 additions and 0 deletions

View file

@ -96,6 +96,8 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
executors.push(executor);
}
::log::info!("spawned socket workers");
for i in 0..(config.swarm_workers) {
let sentinel = sentinel.clone();
let config = config.clone();
@ -129,6 +131,8 @@ pub fn run(config: Config) -> ::anyhow::Result<()> {
executors.push(executor);
}
::log::info!("spawned swarm workers");
if config.cpu_pinning.active {
set_affinity_for_util_worker(
&config.cpu_pinning,

View file

@ -65,6 +65,8 @@ pub async fn run_socket_worker(
let listener = create_tcp_listener(&config, priv_dropper).expect("create tcp listener");
::log::info!("created tcp listener");
let (control_message_senders, _) = control_message_mesh_builder
.join(Role::Producer)
.await
@ -86,6 +88,8 @@ pub async fn run_socket_worker(
out_message_mesh_builder.join(Role::Consumer).await.unwrap();
let out_message_consumer_id = ConsumerId(out_message_receivers.consumer_id().unwrap());
::log::info!("joined channels");
let connection_slab = Rc::new(RefCell::new(Slab::new()));
// Periodically clean connections