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

Configure facter to log using the puppet logging mechanism.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:

      Description

      Normally facter doesn't log anything, however there are a few situations where it does and the information that it logs is very useful. One case of this is when a string is not encoded properly. Right now, if a fact returns a string that is not encoded correctly.

      > be puppet agent -t --certname localhost --server localhost
      Info: Retrieving pluginfacts
      Info: Retrieving plugin
      Info: Loading facts
      Info: Loading facts
      Fact resolution fact='binary', resolution='<anonymous>' resolved to an invalid value: String "\x80\n" doesn't match the reported encoding UTF-8
      Info: Caching catalog for localhost
      Info: Applying configuration version '1414098464'
      Notice: Finished catalog run in 0.05 seconds
      

      The "Fact resolution ..." line should be output using puppet's "warn" level.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              andy Andrew Parker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support