mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 16:34:42 +00:00
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'.
This commit is contained in:
parent
9cbfef2455
commit
a69c912187
@ -1693,8 +1693,8 @@ static int sample_conv_json_check(struct arg *arg, struct sample_conv *conv,
|
||||
return 1;
|
||||
}
|
||||
|
||||
memprintf(err, "Unexpected input code type at file '%s', line %d. "
|
||||
"Allowed value are 'ascii', 'utf8', 'utf8s', 'utf8p' and 'utf8ps'", file, line);
|
||||
memprintf(err, "Unexpected input code type. "
|
||||
"Allowed value are 'ascii', 'utf8', 'utf8s', 'utf8p' and 'utf8ps'");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user