mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
日志trim处理
This commit is contained in:
parent
e97ea10049
commit
829143b52f
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user