fix: 修复日志记录函数调用错误
Docker Build and Push / build (push) Has been cancelled

- 将 `logrus.Errorf("Server err: ", err)` 修正为 `logrus.Errorf("Server err: %v", err)`,以正确格式化错误信息。
- 将 `logrus.Infof(startInfo)` 修正为 `logrus.Info(startInfo)`,因为 `startInfo` 已经是格式化的字符串。
- 在多处将 `logrus.Error` 和 `entry.Errorf` 错误用法修正为 `logrus.Errorf` 和 `entry.Error`,确保日志格式化与函数签名匹配。
This commit is contained in:
2026-02-10 21:02:30 +08:00
parent 1e85ad88ff
commit 2ca4ad5437
4 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func (es *InitSettingService) CommonAddSetting(section string, key string, value
Value: value,
})
if err != nil {
logrus.Error("初始化%s:%s失败", section, key)
logrus.Errorf("初始化%s:%s失败", section, key)
} else {
logrus.Infof("初始化%s:%s成功", section, key)
}