去除log无效内容

This commit is contained in:
liuwei
2025-05-28 17:02:56 +08:00
parent 3697c9160e
commit 9af6eb976c
2 changed files with 1 additions and 55 deletions

View File

@@ -54,7 +54,6 @@ def main():
# 注册定时任务
jobs(robot)
# 启动Dashboard服务器
dashboard_server = None
try:
# 创建Dashboard服务器实例共享robot对象
from admin.dashboard.server import DashboardServer
@@ -66,7 +65,6 @@ def main():
robot.LOG.info(f"Dashboard服务器已在 http://{dashboard_server.host}:{dashboard_server.port} 启动")
except Exception as e:
robot.LOG.error(f"Dashboard服务器启动失败: {e}")
try:
robot.LOG.debug(f"开始启动GlancesMonitor")
# 初始化 Glances 监控
@@ -75,7 +73,7 @@ def main():
host=config.glances.get("host"),
port=config.glances.get("port"),
cpu_threshold=80.0,
load_threshold=None, # 自动设为 CPU 核心数 * 2
load_threshold=16, # 自动设为 CPU 核心数 * 2
io_threshold=100.0,
disk_usage_threshold=60.0,
handle_threshold=20000,