]> git.kaiwu.me - haproxy.git/commit
CLEANUP: log-format: useless file and line in json converter
authorThierry FOURNIER / OZON.IO <thierry.fournier@ozon.io>
Wed, 23 Nov 2016 00:13:57 +0000 (01:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Nov 2016 17:54:25 +0000 (18:54 +0100)
commita69c9121878c3b2ec8eb8c94e5fdf61b6f5c8b11
tree3550f00bb17297c848e11553285b70771a189a58
parent9cbfef24557ac72cdaf8c597c9ebab2b2baccce7
CLEANUP: log-format: useless file and line in json converter

The caller must log location information, so this information is
provided two times in the log line. The error log is like this:

   [ALERT] 327/011513 (14291) : parsing [o3.conf:38]: 'http-response
   set-header': Sample fetch <method,json(rrr)> failed with : invalid
   args in conv method 'json' : Unexpected input code type at file
   'o3.conf', line 38. Allowed value are 'ascii', 'utf8', 'utf8s',
   'utf8p' and 'utf8ps'.

This patch removes the second location indication, the the same error
becomes:

   [ALERT] 327/011637 (14367) : parsing [o3.conf:38]: 'http-response
   set-header': Sample fetch <method,json(rrr)> failed with : invalid
   args in conv method 'json' : Unexpected input code type. Allowed
   value are 'ascii', 'utf8', 'utf8s', 'utf8p' and 'utf8ps'.
src/sample.c