Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4660

Apply config_parse_error to remap loading errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.0.0
    • Remap API
    • None

    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

          Activity

            People

              jamespeach James Peach
              jamespeach James Peach
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h