From 2cd1af13bc4e7aec4c85b9fe88db2d294af6468f Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期日, 08 十月 2023 11:24:37 +0800 Subject: [PATCH] 修复集群同步功能 --- system-service/serf/dbLogger.go | 15 +-------------- 1 files changed, 1 insertions(+), 14 deletions(-) diff --git a/system-service/serf/dbLogger.go b/system-service/serf/dbLogger.go index 12317e6..0517be8 100644 --- a/system-service/serf/dbLogger.go +++ b/system-service/serf/dbLogger.go @@ -13,28 +13,15 @@ } var SyncTables = []string{ - //"area", - //"camera_area", - //"cameras", - //"gb28181_config", - //"dbtablepersons", - //"dbtables", - "cluster", "cluster_node", - "dictionary", - - "auth_config", //璁惧绠$悊鎺堟潈閰嶇疆 - - "t_device", //璁惧淇℃伅琛� - "t_device_app", //璁惧瀹夎鐨刟pp - "t_device_sdk", //璁惧瀹夎鐨剆dk } func (dbLogger *DbLogger) Print(values ...interface{}) { var ( level = values[0] ) + if level == "sql" { msgArr := gorm.LogFormatter(values...) sql := msgArr[3].(string) -- Gitblit v1.8.0