]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cfgparse/log: remove leftover dead code
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 25 Jun 2024 16:31:29 +0000 (18:31 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 26 Jun 2024 09:06:31 +0000 (11:06 +0200)
Remove development leftover introduced by commit 15e9c7da6 ("MINOR: log:
add log-profile parsing logic").

Indeed, since "log-profile" section keyword is registered via
REGISTER_CONFIG_SECTION() macro, it is not relevant to declare it in
common_kw_list[] from cfgparse-global.c. All it does is that it could
confuse the user by suggesting him to use "log-profile" inside a global
section when trying to find a best match in cfg_parse_global().

src/cfgparse-global.c

index 0a081a339186cd8de8164b645eaa97e67289f850..452c0e54536bb8894b77dd9bc0a2d19282197925 100644 (file)
@@ -46,12 +46,12 @@ static const char *common_kw_list[] = {
        "ssl-server-verify", "maxconnrate", "maxsessrate", "maxsslrate",
        "maxcomprate", "maxpipes", "maxzlibmem", "maxcompcpuusage", "ulimit-n",
        "chroot", "description", "node", "pidfile", "unix-bind", "log",
-       "log-profile", "log-send-hostname", "log-tag", "server-state-base",
-       "server-state-file", "spread-checks", "max-spread-checks", "cpu-map",
-       "setenv", "presetenv", "unsetenv", "resetenv", "strict-limits",
-       "localpeer", "numa-cpu-mapping", "defaults", "listen", "frontend",
-       "backend", "peers", "resolvers", "cluster-secret", "no-quic",
-       "limited-quic", "stats-file",
+       "log-send-hostname", "server-state-base", "server-state-file",
+       "log-tag", "spread-checks", "max-spread-checks", "cpu-map", "setenv",
+       "presetenv", "unsetenv", "resetenv", "strict-limits", "localpeer",
+       "numa-cpu-mapping", "defaults", "listen", "frontend", "backend",
+       "peers", "resolvers", "cluster-secret", "no-quic", "limited-quic",
+       "stats-file",
        NULL /* must be last */
 };