Skip to content

Commit aebb81b

Browse files
committed
task: use new event_type checker
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 75dd441 commit aebb81b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/flb_task.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,12 +392,7 @@ struct flb_task *flb_task_create(uint64_t ref_id,
392392
struct flb_output_instance, _head);
393393

394394
/* skip output plugins that don't handle proper event types */
395-
if (ic->event_type == FLB_INPUT_LOGS &&
396-
!(o_ins->event_type & FLB_OUTPUT_LOGS)) {
397-
continue;
398-
}
399-
else if (ic->event_type == FLB_INPUT_METRICS &&
400-
!(o_ins->event_type & FLB_OUTPUT_METRICS)) {
395+
if (!flb_router_match_type(ic->event_type, o_ins)) {
401396
continue;
402397
}
403398

0 commit comments

Comments
 (0)