mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-07 18:50:26 +08:00
只讲错误级别的节点运行日志设置为未读
This commit is contained in:
@@ -75,7 +75,7 @@ func (this *NodeLogDAO) CreateLog(tx *dbs.Tx, nodeRole nodeconfigs.NodeRole, nod
|
|||||||
op.Day = timeutil.FormatTime("Ymd", createdAt)
|
op.Day = timeutil.FormatTime("Ymd", createdAt)
|
||||||
op.Hash = hash
|
op.Hash = hash
|
||||||
op.Count = 1
|
op.Count = 1
|
||||||
op.IsRead = !(level == "error" || level == "warning")
|
op.IsRead = level != "error"
|
||||||
err = this.Save(tx, op)
|
err = this.Save(tx, op)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user