Skip to content

Commit 03b0e7c

Browse files
committed
Move back ReleaseLine
1 parent ecc9fae commit 03b0e7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/inputs/logfile/tailersrc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,11 +244,11 @@ func (ts *tailerSrc) runTail() {
244244
continue
245245
}
246246

247-
ts.tailer.ReleaseLine(line)
248247
ts.publishEvent(msgBuf, fo)
249248
msgBuf.Reset()
250249
msgBuf.WriteString(init)
251250
fo.ShiftInt64(line.Offset)
251+
ts.tailer.ReleaseLine(line)
252252
cnt = 0
253253
case <-t.C:
254254
if msgBuf.Len() > 0 {

0 commit comments

Comments
 (0)