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

@@ -43,7 +43,7 @@ func (file *File) Create() error {
tx := DB.Begin()
if err := tx.Create(file).Error; err != nil {
util.Log().Warning("无法插入文件记录, %s", err)
util.Log().Warning("Failed to insert file record: %s", err)
tx.Rollback()
return err
}