]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: show worker warnings in startup logs
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 21 Oct 2024 14:27:07 +0000 (16:27 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 24 Oct 2024 09:32:20 +0000 (11:32 +0200)
commit4db0f69527676cc979d2fcf6768e23d1d2e3db2d
tree04a47fc1ecef84ef6c67b89f7978c58a90a7b969
parent5ee266b745e539e5c21bc093d1dd8353881f22ce
BUG/MINOR: mworker: show worker warnings in startup logs

As master-worker fork happens now at early init stage and worker then parses
its configuration and performs all initialization steps, let's duplicate
startup logs ring for it, just before the moment when it enters in its pollong
loop. Startup logs ring content is shown as an output of the "reload" master
CLI command and we should be able to dump here worker initialization logs.

Log messages are written in startup logs ring only, when mode MODE_STARTING is
set (see print_message()). So, to be able to keep in startup logs the last
worker alerts, let's withdraw MODE_STARTING and let's reset user messages
context respectively just before entering in polling loop.

This fix does not need to be backported as it is a part of previous patches
from this version, which refactor master-worker architecture.
src/haproxy.c