Description
Error messages in RemapConfig.cc are horribly constructed and with flipping between partial buffers it is easy to end up with silly messages like this:
[Jul 13 23:43:55.966] Server {0x7ffff7fde840} ERROR: <RemapConfig.cc:1396 (remap_parse_config_bti)> [ReverseProxy] failed to add remap rule at /n/trafficserver/etc/trafficserver/remap.config line 1:
If you fix that, then you might get this:
[Jul 13 23:57:08.528] Server {0x7ffff7fde840} ERROR: <RemapConfig.cc:1400 (remap_parse_config_bti)> [ReverseProxy] failed to add remap rule at /n/trafficserver/etc/trafficserver/remap.config line 1: [ReverseProxy] Malformed line 1 in file /n/trafficserver/etc/trafficserver/remap.config
We should apply the config_parse_error object consistently through remap parsing to make it easy to aggregate error messages that are actually useful. Add SourceLocation support to config_parse_error to carry the location of the parse error.
Attachments
Issue Links
- links to