只讲错误级别的节点运行日志设置为未读

This commit is contained in:
刘祥超
2021-10-16 10:26:47 +08:00
parent 55f7189a1c
commit d30b10baee

View File

@@ -75,7 +75,7 @@ func (this *NodeLogDAO) CreateLog(tx *dbs.Tx, nodeRole nodeconfigs.NodeRole, nod
op.Day = timeutil.FormatTime("Ymd", createdAt)
op.Hash = hash
op.Count = 1
op.IsRead = !(level == "error" || level == "warning")
op.IsRead = level != "error"
err = this.Save(tx, op)
return err
}