]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: startup: add set_verbosity
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 8 Oct 2024 14:08:28 +0000 (16:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commit5be14b338a837ee32ff951dbbd50fcabf7c7cae2
tree1ccda3111ea896511c54ba137b91fdf9c9fb75e5
parent5909d508bc8432a0995076524aa431d76ef7ed38
MINOR: startup: add set_verbosity

Let's encapsulate the logic to set verbosity modes (MODE_DEBUG and MODE_VERBOSE)
in a separate function set_verbosity(). This makes the code of main() more
readable and this allows to call set_verbosity() for master process in recovery
mode. So, in this mode, verbosity settings before the master re-execution will
be re-applied to master. set_verbosity() will be extended in future commits to
reduce the verbosiness of master in order not to dump pollers list and filters,
if it was started with -V or -d.
src/haproxy.c