telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

fix(agent): fail on start error for test and fail modes

Open powersj opened this issue 1 year ago • 1 comments

This aligns the behavior of the --test and --once modes to match that of the general telegraf operations. Currently, if there is a failure during a call to an input's start telegraf will stop. This is not the case for --test and --once modes. In these cases, the error will print out, but not stop execution. This can lead to crashes due to some variables not getting correctly initialized or setup in Start.

fixes: #12350

powersj avatar Dec 07 '22 21:12 powersj