Skip to content

Commit

Permalink
fix 换行符
Browse files Browse the repository at this point in the history
  • Loading branch information
alex cai committed Nov 8, 2016
1 parent c42946b commit dd72bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (lf *LogFile) WriteJson(data interface{}) error {
}

if lf.cache.use {
lf.appendCache(string(bts))
lf.appendCache(string(bts) + newlineChar)
return nil
}

Expand Down

0 comments on commit dd72bb6

Please sign in to comment.