Skip to content

Commit 6b637a8

Browse files
committed
input: add error message for bad settings on thread.ring_buffer.window
Signed-off-by: Eduardo Silva <[email protected]>
1 parent f8cc479 commit 6b637a8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/flb_input.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ int flb_input_set_property(struct flb_input_instance *ins,
742742
ret = atoi(tmp);
743743
flb_sds_destroy(tmp);
744744
if (ret <= 0 || ret > 100) {
745+
flb_error("[input] thread.ring_buffer.window must be between 1 and 100");
745746
return -1;
746747
}
747748
ins->ring_buffer_window = (uint8_t) ret;

0 commit comments

Comments
 (0)