多行日志时,仅第一行作为默认显示的日志内容

This commit is contained in:
gotoeasy 2023-05-21 20:38:04 +08:00
parent b0cc9c8d6f
commit d6f9c30a8e

View File

@ -71,6 +71,7 @@ func (s *LogDataStorageHandle) AddLogDataModel(data *logdata.LogDataModel) {
ary := cmn.Split(data.Text, "\n")
if len(ary) > 1 {
data.Detail = data.Text
data.Text = ary[0]
}
if s.storage.IsClose() {