From 10c65da3d2af7056f48d9301e83f53f102f76e18 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期一, 30 十月 2023 14:52:11 +0800 Subject: [PATCH] fix --- main.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/main.go b/main.go index 8f852e5..8aa04c1 100644 --- a/main.go +++ b/main.go @@ -11,6 +11,7 @@ "apsClient/serf" "apsClient/service/plc_address" "fmt" + "log" "net/http" "time" ) @@ -38,6 +39,8 @@ "production_progress", "work_order", "task_status_sync", + "device", + "device_plc", } agent := serf.InitAgent("apsClient", syncTables, sqlitex.GetDB()) @@ -50,6 +53,8 @@ } // 鍒ゆ柇褰撳墠闆嗙兢鐘舵�� + logx.Infof("current agent.ClusterStatus:%v", agent.ClusterStatus) + log.Println("current agent.ClusterStatus:", agent.ClusterStatus) if agent.ClusterStatus != "slave" { if err := nsq.Init(); err != nil { logx.Errorf("nsq Init err:%v", err) -- Gitblit v1.8.0