日志trim处理

This commit is contained in:
gotoeasy 2022-06-28 10:46:28 +08:00
parent e97ea10049
commit 829143b52f

View File

@ -48,7 +48,7 @@ func (s *LogDataStorageHandle) AddTextLog(logText string) {
ary := strings.Split(txt, "\n")
d := new(LogDataModel)
d.Text = ary[0]
d.Text = strings.TrimSpace(ary[0])
if len(ary) > 1 {
d.Detail = txt
}