refactor: 移除日志实时流功能
删除 log_stream 模块及 LOG_TAIL_CTRL 命令、懒加载与停机释放逻辑,日志查看仅保留 LOG_TAIL 与 GET_LOG_DOWNLOAD。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
+1
-3
@@ -89,10 +89,8 @@ def _setup_logging(log_dir: str):
|
||||
|
||||
|
||||
def _shutdown(signum, frame):
|
||||
"""优雅停机:释放日志流 → 停守护 → 断连接 → 退出。"""
|
||||
"""优雅停机:停守护 → 断连接 → 退出。"""
|
||||
log.info("Agent 停机中...(signal=%s)", signum)
|
||||
if _dispatcher is not None:
|
||||
_dispatcher.shutdown_log_stream()
|
||||
if _guard is not None:
|
||||
_guard.stop()
|
||||
if _client is not None:
|
||||
|
||||
Reference in New Issue
Block a user