加入日志
This commit is contained in:
2
main.py
2
main.py
@@ -67,7 +67,6 @@ def main():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
robot.LOG.error(f"Dashboard服务器启动失败: {e}")
|
robot.LOG.error(f"Dashboard服务器启动失败: {e}")
|
||||||
|
|
||||||
asyncio.run(async_job.run_all())
|
|
||||||
try:
|
try:
|
||||||
robot.LOG.debug(f"开始启动GlancesMonitor")
|
robot.LOG.debug(f"开始启动GlancesMonitor")
|
||||||
# 初始化 Glances 监控
|
# 初始化 Glances 监控
|
||||||
@@ -86,6 +85,7 @@ def main():
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
robot.LOG.error(f"GlancesMonitor服务器启动失败: {e}")
|
robot.LOG.error(f"GlancesMonitor服务器启动失败: {e}")
|
||||||
|
|
||||||
|
asyncio.run(async_job.run_all())
|
||||||
# 让机器人一直跑
|
# 让机器人一直跑
|
||||||
robot.keep_running_and_block_process()
|
robot.keep_running_and_block_process()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user