优化: ssh/mongo/redis-proxy 超时分级与日志默认开

- ssh: exec_timeout_secs 600s(408断会话)/idle 300→1800s/日志级别规则/截断500→2000
- mongo/redis: query_timeout 60s + idle_timeout 落配置
- 四代理: 日志默认开启(default_log_path exe同目录logs/),未设env也记录
- mysql: default_log_path 共享实现注释同步
This commit is contained in:
lxy committed 2026-10-28 22:56:02 +08:00
1 parent ecdebdd6c0
commit 95dfe8504d
20 files changed
+3494 -121

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ impl LogEntry {
}
}
pub fn with_conn(mut self, conn: &str) -> Self { self.conn = Some(conn.to_string()); self }
pub fn with_command(mut self, cmd: &str) -> Self { self.command = Some(truncate_string(cmd, 500)); self }
pub fn with_command(mut self, cmd: &str) -> Self { self.command = Some(truncate_string(cmd, 2000)); self }
pub fn with_duration(mut self, ms: u64) -> Self {
self.duration_ms = ms;
if ms > 5000 && self.level == "INFO" { self.level = "ERROR".to_string(); }