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

whole template block inserted into log lines

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.7.1
    • Component/s: Logging
    • Labels:
      None

      Description

      Since I upgraded to CFEngine 3.5, I keep getting overlong output log
      lines that contain the whole template block.

      This breaks the log format: blocks contain embedded newlines, so a log
      line is no longer a single line. In addition, even for a block of
      moderate size this makes the verbose log completely unreadable.

      Example:
      <pre>
      2014-01-07T17:29:26+0100 verbose: /main/methods/'OPENSTACK'/OPENSTACK/methods/'Run bundle $(run_list)'/openstack_glance/files/'/etc/glance/glance-api.conf'/temp_cf_bundle__var_cfengine_inputs_serv_openstack_glance_d_etc_glance_glance_api_conf_tmpl/insert_lines/'# THIS FILE IS CONTROLLED BY CFENGINE,

      1. any local modifications will be overwritten!
      2. If you want to make changes, please edit the
      3. master file.
        #
      4. Default: 'file'': Additional promise info: version 'GC3/OCI promises.cf $Revision$'
        2014-01-07T17:29:26+0100 verbose: /main/methods/'OPENSTACK'/OPENSTACK/methods/'Run bundle $(run_list)'/openstack_glance/files/'/etc/glance/glance-api.conf'/temp_cf_bundle__var_cfengine_inputs_serv_openstack_glance_d_etc_glance_glance_api_conf_tmpl/insert_lines/'# THIS FILE IS CONTROLLED BY CFENGINE,
      5. any local modifications will be overwritten!
      6. If you want to make changes, please edit the
      7. master file.
        #
      8. Default: 'file'': Inserting the promised line '# THIS FILE IS CONTROLLED BY CFENGINE,' into '/etc/glance/glance-api.conf' after locator
        </pre>

      Can you please use a reference to the block being expanded (e.g.,
      template file name + starting line number) instead of copying the
      whole block?

        Attachments

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              riccardomurri Riccardo Murri
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel