]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: log: change wording in lf_expr_postcheck() error message
authorAurelien DARRAGON <adarragon@haproxy.com>
Tue, 11 Jun 2024 07:31:26 +0000 (09:31 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 11 Jun 2024 08:59:58 +0000 (10:59 +0200)
logformat_node was referenced as "node" in the error message reported
to the user, but in fact it is referred to as "item" in user
documentation. Using "item" in the error message to better comply with
the doc.

Error message was introduced with 7a21c3a4ef ("MAJOR: log: implement
proper postparsing for logformat expressions")

src/log.c

index 5e78b760f003a663fdcc47cc430cff0ad173ed52..30274b984b177e42a8d689f1220798564b69feba 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -1008,7 +1008,7 @@ int lf_expr_postcheck(struct lf_expr *lf_expr, struct proxy *px, char **err)
        }
        if ((px->to_log & (LW_REQ | LW_RESP)) &&
            (px->mode != PR_MODE_HTTP && !(px->options & PR_O_HTTP_UPG))) {
-               memprintf(err, "logformat expression not usable here (at least one node depends on HTTP mode)");
+               memprintf(err, "logformat expression not usable here (at least one item depends on HTTP mode)");
                goto fail;
        }