From d1e83bc3147fb473362de1d10157ff604d5a185a Mon Sep 17 00:00:00 2001 From: Tobias Wolter Date: Tue, 9 Dec 2025 12:32:49 +0100 Subject: [PATCH] Be a bit more verbose when loading module facts Right now, you only get a rather unhelpful pile of `Loading facts` messages when having a log level of info. This changes the messages so that it's clear which module's facts are loaded and you're not staring at a bunch of info-level messages that are only understandable when you're actually at debug level. --- lib/puppet/indirector/facts/facter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/indirector/facts/facter.rb b/lib/puppet/indirector/facts/facter.rb index 1e3805a838..0ae095d3fa 100644 --- a/lib/puppet/indirector/facts/facter.rb +++ b/lib/puppet/indirector/facts/facter.rb @@ -69,7 +69,7 @@ def self.setup_search_paths(request) # print out each .rb in the facts directory as module # developers may find that information useful for debugging purposes if Puppet::Util::Log.sendlevel?(:info) - Puppet.info _("Loading facts") + Puppet.info _("Loading facts from module #{File.basename(File.expand_path('../..', dir))}.") Dir.glob("#{dir}/*.rb").each do |file| Puppet.debug { "Loading facts from #{file}" } end