]> git.kaiwu.me - haproxy.git/commitdiff
BUG/MINOR: log: fix erroneous error message in log-steps parser
authorAurelien DARRAGON <adarragon@haproxy.com>
Thu, 1 Oct 2026 09:03:18 +0000 (11:03 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Mon, 5 Oct 2026 11:01:56 +0000 (13:01 +0200)
When invalid arguments are provided to "log-steps" directive, the
following error is returned: "invalid arguments, expects 'all' or a
composition of logging steps separated by spaces."

While in fact the parser expects comma separated values, and even the
documentation states it.

Let's fix the error message to match with the actual behavior and doc.

It should be backported to 3.2.

src/log.c

index 18c93dacb761ce8412c069c9a20551aed6881df3..62ca5bab1a5b02f35c1ef0b22b21df797cc19390 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -7134,7 +7134,7 @@ static int px_parse_log_steps(char **args, int section_type, struct proxy *curpx
 
        if (args[1] == NULL) {
                memprintf(err, "%s: invalid arguments, expects 'all' or a composition of logging"
-                              "steps separated by spaces.",
+                              "steps separated by commas.",
                          args[0]);
                goto end;
        }