From 1df73859f0e94b8966f8637c8e836e1a3704372c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Sat, 11 May 2024 21:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E5=AE=89=E8=A3=85=E8=BF=87?= =?UTF-8?q?=E7=A8=8B=E4=B8=AD=E5=88=9B=E5=BB=BA=E6=95=B0=E6=8D=AE=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E7=9A=84=E6=97=A5=E5=BF=97=EF=BC=8C=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=B0=8F=E7=99=BD=E7=94=A8=E6=88=B7=E8=AF=AF=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/setup/sql_dump.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/setup/sql_dump.go b/internal/setup/sql_dump.go index a07348c6..124ca94b 100644 --- a/internal/setup/sql_dump.go +++ b/internal/setup/sql_dump.go @@ -415,7 +415,8 @@ func (this *SQLDump) applyQueue(db *dbs.DB, newResult *SQLDumpResult, showLog bo if one == nil { ops = append(ops, "+ record "+newTable.Name+" "+strings.Join(valueStrings, ", ")) if showLog { - this.log("+ record " + newTable.Name + " " + strings.Join(valueStrings, ", ")) + // 不记录详细日志,防止小白用户误解日志内容 + // this.log("+ record " + newTable.Name + " " + strings.Join(valueStrings, ", ")) } var params = []string{} var args = []string{} @@ -439,7 +440,8 @@ func (this *SQLDump) applyQueue(db *dbs.DB, newResult *SQLDumpResult, showLog bo } else if !record.ValuesEquals(one) { ops = append(ops, "* record "+newTable.Name+" "+strings.Join(valueStrings, ", ")) if showLog { - this.log("* record " + newTable.Name + " " + strings.Join(valueStrings, ", ")) + // 不记录详细日志,防止小白用户误解日志内容 + // this.log("* record " + newTable.Name + " " + strings.Join(valueStrings, ", ")) } var args = []string{} var values = []any{}