i18n: logs in models

This commit is contained in:
HFO4
2022-09-29 17:40:22 +08:00
parent db23f4061d
commit 7366ff534e
9 changed files with 34 additions and 34 deletions

View File

@@ -19,7 +19,7 @@ type Task struct {
// Create 创建任务记录
func (task *Task) Create() (uint, error) {
if err := DB.Create(task).Error; err != nil {
util.Log().Warning("无法插入任务记录, %s", err)
util.Log().Warning("Failed to insert task record: %s", err)
return 0, err
}
return task.ID, nil