On Tue, Nov 14, 2023 at 02:32:40AM -0500, John Lauro wrote:
> I like the default message.  If you want to suppress it, then you can use -q.
> Having some standard output that can be suppressed with -q is also
> fairly standard for UNIX commands.
> 

In haproxy we have these two flags:

-q is meant to suppress all the messages, even when the configuration is
wrong, that's not the same thing as displaying only the errors.

-V is meant to add more output than the default.

Till 2.8, the systemd unit was not displaying the errors upon a reload
because it was checking the configuration with -q, I'm surprised nobody
reported it, because that's really a pain to have a process which
reloads incorrectly without showing any error.

Problem is, when removing the -q, the script adds "Configuration is
valid" to the logs for every reloads, which are already a bit heavy for
just a reload.

Using -q for this was a problem, so I'd better not do it. I'm not
talking about suppressing the message, just hiding the "valid" message
by default, without -V. All other warnings and alerts are still
outputed, so it's easy to see if you broke something.

-- 
William Lallemand

Reply via email to