fix: ocg_router proc_guard API适配——_LockResult无pid属性,g.pid→g.message(修复502 Bad Gateway根因:启动检查AttributeError导致服务不稳定)

This commit is contained in:
2026-08-14 09:46:51 +08:00
parent 75026c9b7a
commit ef4ead6a03
+1 -1
View File
@@ -721,7 +721,7 @@ def main():
# PID 锁
g = guard("ocg_router")
if not g.ok:
log.error("ocg_router 已有实例在运行 (PID %s),退出", g.pid)
log.error("ocg_router 已有实例在运行 (PID %s),退出", g.message)
sys.exit(1)
# 初始加载