On 04/03/2016 23:15, Jan Olszak wrote:
But what if I need to fallback if the arguments are malformed?

 I'd argue this is not a good idea.
 Arguments to a logging script are not user data, they are admin-controlled
data that impacts the working of your system. They should be validated
before you run the script. Adding a fallback in the run script itself
is defensive programming.

 If the arguments are malformed, you don't want s6-log to silently use a
fallback set. You want s6-log to fail and complain loudly, so you go back
and fix the arguments.

--
 Laurent

Reply via email to