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

    • Template:
      New os support on traditional module
    • Team:
      Night's Watch
    • Sub-team:
    • Story Points:
      2
    • Sprint:
      ghost-9.12
    • Method Found:
      Needs Assessment
    • Release Notes:
      Enhancement
    • Release Notes Summary:
      Added log messages for resolved fact values
    • QA Risk Assessment:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support