]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stream: Properly indent current_rule line in "show sess all"
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 Oct 2021 09:10:31 +0000 (11:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 12 Oct 2021 09:27:24 +0000 (11:27 +0200)
This line is not related to the response channel but to the stream. Thus it
must be indented at the same level as stream-interfaces, connections,
channels...

src/stream.c

index 6d6374d4d7c90bff1785bda197d2eeeee9883fc2..4fc22b81c5a08d7012e7b3b06ecc35a051394ca6 100644 (file)
@@ -3435,7 +3435,7 @@ static int stats_dump_full_strm_to_buffer(struct stream_interface *si, struct st
 
                if (strm->current_rule_list && strm->current_rule) {
                        const struct act_rule *rule = strm->current_rule;
-                       chunk_appendf(&trash, "      current_rule=\"%s\" [%s:%d]\n", rule->kw->kw, rule->conf.file, rule->conf.line);
+                       chunk_appendf(&trash, "  current_rule=\"%s\" [%s:%d]\n", rule->kw->kw, rule->conf.file, rule->conf.line);
                }
 
                if (ci_putchk(si_ic(si), &trash) == -1)