Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-6465

Catalog evaltrace should log resource number and totals

    XMLWordPrintable

Details

    • Coremunity
    • Platform Core KANBAN
    • Enhancement
    • The `--evaltrace` command line argument now displays the number of resources evaluated and the total number of resources to be evaluated

    Description

      The --evaltrace apply/agent option is valuable for showing which resource in the catalog is currently being evaluated, but it would be useful if the log messages showed the progress through the current catalog, e.g. resource 10 of 42. This would give an overall progress indication of the run.

      As an example, with a single notify resource plus the standard resources generated in the catalog, I'd expect output similar to:

      Info: Class[Main]: Starting to evaluate the resource (1 of 10)
      Info: Class[Main]: Evaluated in 0.00 seconds
      Info: /Stage[main]/Main/Notify[test]: Starting to evaluate the resource (2 of 10)
      Notice: test
      Notice: /Stage[main]/Main/Notify[test]/message: defined 'message' as 'test'
      Debug: /Stage[main]/Main/Notify[test]: The container Class[Main] will propagate my refresh event
      Info: /Stage[main]/Main/Notify[test]: Evaluated in 0.00 seconds
      

      Attachments

        Activity

          People

            josh Josh Cooper
            domcleal Dominic Cleal
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support