Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/flb_router_condition.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ int flb_router_path_should_route(struct flb_event_chunk *chunk,
return FLB_FALSE;
}

if (!path->route) {
return FLB_TRUE;
}

if (chunk && chunk->type == FLB_EVENT_TYPE_LOGS) {
if (!context) {
return FLB_FALSE;
Expand All @@ -275,10 +279,6 @@ int flb_router_path_should_route(struct flb_event_chunk *chunk,
}
}

if (!path->route) {
return FLB_TRUE;
}

return flb_route_condition_eval(chunk, context, path->route);
}

Expand Down
Loading