Hello,
i'm using "show errors" on HAProxy CLI with an automated script to dump
errors logged by HAProxy.
I saw that between frontend errors and backend errors, there is a tiny typo
mistake :
[29/Jul/2014:12:37:01.962] frontend webmix:80 (#149): invalid request
[...]
[30/Jul/2014:11:44:35.978] backend webmix:80 (#149) : invalid response
[...]
There is a space before "invalid response", so the regexp I'm using should
take care of it.
Attached is the patch that remove the space for invalid response. This is
really a small contribution to HAProxy, but hey, there's a start to
everything ;)
Olivier
diff --git "old/dumpstats.c" "new/dumpstats.c"
index 09bc7f6..5365042 100644
--- "old/dumpstats2.c"
+++ "new/dumpstats.c"
@@ -6045,7 +6045,7 @@ static int stats_dump_errors_to_buffer(struct
stream_interface *si)
break;
case 1:
chunk_appendf(&trash,
- " backend %s (#%d): invalid
response\n"
+ " backend %s (#%d) : invalid
response\n"
" frontend %s (#%d)",
appctx->ctx.errors.px->id,
appctx->ctx.errors.px->uuid,
es->oe->id, es->oe->uuid);