We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ae5333 commit 233d09eCopy full SHA for 233d09e
1 file changed
src/multiline/flb_ml.c
@@ -267,6 +267,11 @@ static int package_content(struct flb_ml_stream *mst,
267
if (ret == FLB_MULTILINE_TRUNCATED) {
268
truncated = FLB_TRUE;
269
}
270
+
271
+ if (!truncated && stream_group->mp_sbuf.size == 0) {
272
+ flb_ml_register_context(stream_group, tm, full_map);
273
+ }
274
275
processed = FLB_TRUE;
276
277
else if (type == FLB_ML_ENDSWITH) {
@@ -340,7 +345,7 @@ static int package_content(struct flb_ml_stream *mst,
340
345
341
346
342
347
343
- if (processed && metadata != NULL) {
348
+ if (!truncated && processed && metadata != NULL) {
344
349
flb_ml_stream_group_add_metadata(stream_group, metadata);
350
351
0 commit comments