]> git.ipfire.org Git - thirdparty/squid.git/commit - src/adaptation/icap/ModXact.cc
Author: Alex Rousskov <rousskov@measurement-factory.com>, Christos Tsantilas <chtsant...
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 21 Oct 2010 08:13:41 +0000 (11:13 +0300)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 21 Oct 2010 08:13:41 +0000 (11:13 +0300)
commit64b66b760b0d5d9e182e5c2790c31246f4a2958b
tree33b198427f3d6bd76f839284ff52a18143a84e9f
parent5e956603126c64678b05c3cb613249f112a8fb44
Author: Alex Rousskov <rousskov@measurement-factory.com>, Christos Tsantilas <chtsanti@users.sourceforge.net>
Added %err_code and %err_detail logformat codes to record details about transaction failures

For example, when Squid responds with 500 Internal Server Error, it is often
useful to know what went wrong.

This patch :
 - log a detail string instead of numbers for common errors
 - log a label with the detail code number for generic errors (system errors,
   or exceptions)
 - adds more details about errors, especially those detected with exceptions:
   We record a hash of the filename and the source code line number of the
   first caught exception.
 - adds two scripts which can help the developers to find the exact position
   of the caught exception:
   1) The calc-must-ids.pl take as argument one or more files and compute for
      each Must expression in the given files its  id;
   2) The calc-must-ids.sh can be used to find the exact position of a Must
      expression from its id. Example usage:
          # ./scripts/calc-must-ids.sh 0xB79EF14
          ./src/adaptation/ecap/MessageRep.cc:356: 0xB79EF14 Must(false);
23 files changed:
scripts/calc-must-ids.pl [new file with mode: 0644]
scripts/calc-must-ids.sh [new file with mode: 0644]
src/HttpRequest.cc
src/HttpRequest.h
src/Makefile.am
src/Server.cc
src/adaptation/icap/ModXact.cc
src/adaptation/icap/ModXact.h
src/adaptation/icap/Xaction.cc
src/adaptation/icap/Xaction.h
src/base/TextException.cc
src/base/TextException.h
src/cf.data.pre
src/client_side.cc
src/client_side_request.cc
src/client_side_request.h
src/err_detail_type.h [new file with mode: 0644]
src/errorpage.cc
src/errorpage.h
src/forward.cc
src/ftp.cc
src/http.cc
src/log/access_log.cc