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

Show variable definitions in verbose output

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.9.0
    • Component/s: Evaluation
    • Labels:
      None

      Description

      In order to make it easier to debug policy.

      Given this code:

      <pre>
      bundle agent example {
      classes:
      "example_class" expression => "any";

      vars:
      "example_var" string => "hello_world";
      }
      </pre>

      Here is the verbose output, with suggested new message.

      2015-04-29T20:58:51+0000 verbose: /default/example: Evaluating bundle pass 1
      2015-04-29T20:58:51+0000 verbose: /default/example/vars: Evaluating promise 'example_var'
      2015-04-29T20:58:51+0000 verbose: /default/example/classes: Evaluating promise 'example_class'
      2015-04-29T20:58:51+0000 verbose: /default/example/classes/'example_class'[0]: Adding local bundle class 'example_class'
      2015-04-29T20:58:51+0000 verbose: /default/example/vars: Evaluating promise 'example_var'
      PRIVATE VAR DEFINED: example_var = hello_world
      2015-04-29T20:58:51+0000 verbose: /default/example: Private classes augmented: example_class
      2015-04-29T20:58:51+0000 verbose: /default/example: Evaluating bundle pass 2

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                a10038 jimis (Dimitrios Apostolou)
                Reporter:
                a10003 Eystein Maloy Stenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel