Skip to content

Commit 7898e9e

Browse files
committed
(GH-98) Add debug message during fact loading
This commit adds a debug message to the log when facts loading completes. This is useful in debugging to know when the thread has completed.
1 parent 50086bf commit 7898e9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/lib/puppet-languageserver/facter_helper.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def self._load_facts
3939
_reset
4040
Facter.loadfacts
4141
@fact_hash = Facter.to_hash
42+
PuppetLanguageServer.log_message(:debug, "[FacterHelper::_load_facts] Finished loading #{@fact_hash.keys.count} facts")
4243
end
4344
private_class_method :_load_facts
4445
end

0 commit comments

Comments
 (0)