隐藏安装过程中创建数据记录的日志,避免小白用户误解

This commit is contained in:
GoEdgeLab
2024-05-11 21:05:04 +08:00
parent cdb1f049f3
commit 8d049c8239

View File

@@ -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{}