[
https://issues.apache.org/jira/browse/TS-4660?focusedWorklogId=25501&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-25501
]
ASF GitHub Bot logged work on TS-4660:
--------------------------------------
Author: ASF GitHub Bot
Created on: 14/Jul/16 22:59
Start Date: 14/Jul/16 22:59
Worklog Time Spent: 10m
Work Description: Github user jpeach closed the pull request at:
https://github.com/apache/trafficserver/pull/796
Issue Time Tracking
-------------------
Worklog Id: (was: 25501)
Time Spent: 1h (was: 50m)
> Apply config_parse_error to remap loading errors
> ------------------------------------------------
>
> Key: TS-4660
> URL: https://issues.apache.org/jira/browse/TS-4660
> Project: Traffic Server
> Issue Type: Bug
> Components: Remap API
> Reporter: James Peach
> Time Spent: 1h
> Remaining Estimate: 0h
>
> 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:
> {noformat}
> [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:
> {noformat}
> If you fix that, then you might get this:
> {noformat}
> [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
> {noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)