]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] implement error dump on unix socket with "show errors"
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2009 14:53:18 +0000 (15:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2009 14:53:18 +0000 (15:53 +0100)
commit74808cb90742a4f3de9d9b8e5e79c95526ee411e
tree164cdfbcffcd54a502fa91b0979a8c38922c7361
parentf073a83b1d4181f82e545275e49422df59bde6b0
[MEDIUM] implement error dump on unix socket with "show errors"

The new "show errors" command sent on a unix socket will dump
all captured request and response errors for all proxies. It is
also possible to bound the log to frontends and backends whose
ID is passed as an optional parameter.

The output provides information about frontend, backend, server,
session ID, source address, error type, and error position along
with a complete dump of the request or response which has caused
the error.

If a new error scratches the one currently being reported, then
the dump is aborted with a warning message, and processing goes
on to next error.
include/proto/dumpstats.h
include/types/session.h
src/dumpstats.c
src/proto_uxst.c