MINOR: config: show HAPROXY_BRANCH in "show env" output

Before this patch HAPROXY_BRANCH was unset just after configuration parsing.
Let's keep it, as it could be used in conditional blocks and some
configuration directives and it's handy to check its runtime value via "show
env".

In master-worker mode, this variable is set to the same value for both
processes.
This commit is contained in:
Valentine Krasnobaeva 2024-11-18 17:54:25 +01:00 committed by William Lallemand
parent d58a8d1f64
commit 7848692c4c

View File

@ -1248,7 +1248,6 @@ static int read_cfg(char *progname)
}
/* remove temporary environment variables. */
unsetenv("HAPROXY_BRANCH");
unsetenv("HAPROXY_HTTP_LOG_FMT");
unsetenv("HAPROXY_HTTP_CLF_LOG_FMT");
unsetenv("HAPROXY_HTTPS_LOG_FMT");