]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: trace: add the file name and line number in the prefix
authorWilly Tarreau <w@1wt.eu>
Mon, 12 Aug 2019 15:27:09 +0000 (17:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Aug 2019 18:21:00 +0000 (20:21 +0200)
commit419bd49f0b55fd71bb39b905d9e59f29aa9484a7
tree795daa56f3bf4bafed71c76da066862c2fc5873a
parent4c2ae483759b9692de8bd593523d412fd1310e27
MINOR: trace: add the file name and line number in the prefix

We now pass an extra argument "where" to the trace() call, which
is supposed to be an ist made of the concatenation of the filename
and the line number. We only keep the last 10 chars from this string
since the end of file names is most often easy to recognize. This
gives developers useful information at very low cost.
include/proto/trace.h
src/trace.c