Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-2607

When logging error about inability to select a specified region, the specified region should be emitted.

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When an error is emitted because the specified region was not able to be selected the error should also describe the region for which it was searching. This greatly helps in debugging policy.

       

      For example:

      error: The promised column edit 'LDAP_server\s*=.*' could not select an edit region in '/tmp/idmapd.conf'
      error: The promised line insertion 'LDAP_server=nsldap.utdallas.edu' could not select an edit region in '/tmp/idmapd.conf'
      

      It would be nice to have more detailed error information for example:

      error: The promised column edit 'LDAP_server\s*=.*' could not select an edit region in '/tmp/idmapd.conf' starting with <CONTENT OF select_region select_start>
      error: The promised line insertion 'LDAP_server=nsldap.utdallas.edu' could not select an edit region in '/tmp/idmapd.conf'
      

      it would be even nicer if it supplied the end of section information, but that could be a bit more troublesome to implement since it is the specificed select_end OR end of file

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                olehermanse Ole Herman Schumacher Elgesem
                Reporter:
                a10042 Nick Anderson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Summary Panel