legs logs on server
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user