Skip to content

Commit 9fd4272

Browse files
committed
fluent-bit: do not list 'lib' plugin, is useless from the binary
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 9959b0f commit 9fd4272

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/fluent-bit.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ static void flb_help(int rc, struct flb_config *config)
5858
/* Iterate each supported input */
5959
mk_list_foreach(head, &config->inputs) {
6060
in = mk_list_entry(head, struct flb_input_plugin, _head);
61+
if (strcmp(in->name, "lib") == 0) {
62+
/* useless..., just skip it. */
63+
continue;
64+
}
6165
printf(" %-22s%s\n", in->name, in->description);
6266
}
6367
printf("\n%sOutputs%s\n", ANSI_BOLD, ANSI_RESET);
@@ -95,6 +99,8 @@ int flb_signal_handler(int signal)
9599
default:
96100
break;
97101
}
102+
103+
return 0;
98104
}
99105

100106
void flb_signal_init()

0 commit comments

Comments
 (0)