mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
多行日志时,仅第一行作为默认显示的日志内容
This commit is contained in:
parent
b0cc9c8d6f
commit
d6f9c30a8e
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user