Re: s6-log run script

From: Laurent Bercot <ska-skaware_at_skarnet.org>
Date: Fri, 4 Mar 2016 23:43:07 +0100

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
Received on Fri Mar 04 2016 - 22:43:07 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC