From 3fb5f541891e3aa69060a1ea9b3808cc42bbbfa8 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 06 十一月 2023 10:51:26 +0800
Subject: [PATCH] add log

---
 api/v1/device.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/api/v1/device.go b/api/v1/device.go
index 4576cc7..c107808 100644
--- a/api/v1/device.go
+++ b/api/v1/device.go
@@ -45,7 +45,7 @@
 		return
 	}
 	service.SetDeviceIDToFile(params.CurrentDeviceID)
-	conf.Conf.SerfClusterStatus = params.CurrentDeviceID
+	conf.Conf.CurrentDeviceID = params.CurrentDeviceID
 	err = crontask.RestartTask(conf.Conf.SerfClusterStatus != constvar.SerfClusterStatusSlave)
 	if err != nil {
 		logx.Errorf("restart task failed:%v", err)

--
Gitblit v1.8.0