Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2883

Gem-based Facter 4.0.x does not log the facts in debug mode

    XMLWordPrintable

Details

    • Night's Watch
    • 2
    • ghost-9.12
    • Needs Assessment
    • Enhancement
    • Added log messages for resolved fact values
    • Needs Assessment

    Description

      In debug mode, native facter logs the fact and its value - as in the following example:

      Facter: fact "fqdn" has resolved to "mymachine.mydomain.com".

      This is very helpful in debugging.

      But the gem-based facter does not log the value in the debug mode – instead it logs the cryptic messages, like:

      Facter: User query is: ["fqdn"]
      Facter: Query is fqdn
      Checking query tokens fqdn
      Facter: List of resolvable facts: [#<Facter::SearchedFact:0x00000219b7a0dfc0 @name="fqdn", @fact_class=Facts::Windows::Networking::Fqdn, @filter_tokens=[], @user_query="fqdn", @type=:legacy, @file=nil>]

      Attachments

        Activity

          People

            bogdan.irimie Bogdan Irimie
            sstripathi Sanjay Tripathi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support