mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 12:55:48 +00:00
Add additional information in the search debug
Adds information about the number of results returned for the given search.
This commit is contained in:
parent
2eeddf0133
commit
da1af3a535
@ -88,7 +88,7 @@ module PuppetX
|
||||
end_time = Time.now
|
||||
time_delta = sprintf('%.3f', end_time - start_time)
|
||||
|
||||
Puppet.debug("Searching #{@base} for #{@attributes} using #{@filter} took #{time_delta} seconds")
|
||||
Puppet.debug("Searching #{@base} for #{@attributes} using #{@filter} took #{time_delta} seconds and returned #{entries.length} results")
|
||||
return entries
|
||||
rescue Exception => e
|
||||
Puppet.debug('There was an error searching LDAP #{e.message}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user