Skip to content

Commit 24bcbf2

Browse files
Merge pull request #236 from OlivierCazade/fix-ingest-compilation
Fix ingest compilation
2 parents cf65a90 + f8a125a commit 24bcbf2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/pipeline/ingest/ingest_collector.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ func (ingestC *ingestCollector) processLogLines(out chan<- []config.GenericMap)
183183
if len(ingestC.in) > 0 {
184184
for len(records) < ingestC.batchMaxLength && len(ingestC.in) > 0 {
185185
record := <-ingestC.in
186-
recordAsBytes, _ := json.Marshal(record)
187-
records = append(records, string(recordAsBytes))
186+
records = append(records, record)
188187
}
189188
}
190189
log.Debugf("ingestCollector sending %d entries, %d entries waiting", len(records), len(ingestC.in))

0 commit comments

Comments
 (0)