Skip to content

Commit

Permalink
Merge pull request #6 from neo-ngd/dev
Browse files Browse the repository at this point in the history
persist \n
  • Loading branch information
ZhangTao1596 authored Dec 12, 2018
2 parents a0709ca + 5a331bf commit b3d0b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (s *Backend) handler(w http.ResponseWriter, r *http.Request) {
s.tran.Transfer(log)
}
//persist
s.pers.Add(fmt.Sprintf("[%s]", name), log)
s.pers.Add(fmt.Sprintf("[%s]", name), log+"\n")

//send to web
go s.api.SendLog(name, log)
Expand Down

0 comments on commit b3d0b21

Please sign in to comment.