legs logs on server

This commit is contained in:
2026-04-16 13:21:37 +07:00
parent 2d70f33257
commit f0b6bf423e
3 changed files with 26 additions and 1 deletions
+16
View File
@@ -57,6 +57,22 @@ impl SessionManager {
info!("🧹 Session {} completely closed and cleaned up", session_id);
}
}
pub fn print_all_sessions(&self) {
if self.sessions.is_empty() {
return;
}
info!("📊 --- SERVER GLOBAL SESSIONS REPORT ---");
for entry in self.sessions.iter() {
let session_id = entry.key();
let muxer = entry.value();
// Вызываем уже существующий метод печати дерева у Muxer
muxer.print_topology_tree();
}
info!("📊 ---------------------------------------");
}
}
#[async_trait::async_trait]
+1 -1
View File
@@ -23,7 +23,7 @@ pub const AUTH_TIME_STEP: u64 = 60;
pub const AUTH_WINDOW_SIZE: u64 = 2;
pub const LEG_STAGGER_DELAY: Duration = Duration::from_millis(1000); // Чуть ускорили старт
pub const TOPOLOGY_PRINT_INTERVAL: Duration = Duration::from_secs(15);
pub const TOPOLOGY_PRINT_INTERVAL: Duration = Duration::from_secs(10);
pub const STEALTH_FALLBACK_HOST: &str = "ubuntu.com:443";
pub const FALLBACK_CONNECT_TIMEOUT: Duration = Duration::from_secs(5);