diff options
| author | Matt Robinson <matt@puppetlabs.com> | 2011-07-19 14:11:37 -0700 |
|---|---|---|
| committer | Matt Robinson <matt@puppetlabs.com> | 2011-07-25 12:54:27 -0700 |
| commit | f484851b7528c0fcf1254d25a022e9cb7ef9b3bd (patch) | |
| tree | 8613895f643fa39e96ad59d7c5070cf34f9644d7 /lib/puppet | |
| parent | 790e947e5581fc51e7002c81c3848fb7048bb6ac (diff) | |
| download | puppet-f484851b7528c0fcf1254d25a022e9cb7ef9b3bd.tar.gz puppet-f484851b7528c0fcf1254d25a022e9cb7ef9b3bd.tar.xz puppet-f484851b7528c0fcf1254d25a022e9cb7ef9b3bd.zip | |
maint: Add debug logging when the master receives a report
It's always bothered me that when running puppet inspect (or any
application that produces a report really) the master gives no
indication that anything happened when it processes the report.
Reviewed-by: Max Martin <max@puppetlabs.com>
Diffstat (limited to 'lib/puppet')
| -rw-r--r-- | lib/puppet/indirector/report/processor.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/indirector/report/processor.rb b/lib/puppet/indirector/report/processor.rb index 88fe4b487..81b379eb8 100644 --- a/lib/puppet/indirector/report/processor.rb +++ b/lib/puppet/indirector/report/processor.rb @@ -20,9 +20,11 @@ class Puppet::Transaction::Report::Processor < Puppet::Indirector::Code # LAK:NOTE This isn't necessarily the best design, but it's backward # compatible and that's good enough for now. def process(report) + Puppet.debug "Recieved report to process from #{report.host}" return if Puppet[:reports] == "none" reports.each do |name| + Puppet.debug "Processing report from #{report.host} with processor #{name}" if mod = Puppet::Reports.report(name) # We have to use a dup because we're including a module in the # report. |
