summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-07-19 14:11:37 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-07-25 12:54:27 -0700
commitf484851b7528c0fcf1254d25a022e9cb7ef9b3bd (patch)
tree8613895f643fa39e96ad59d7c5070cf34f9644d7 /lib
parent790e947e5581fc51e7002c81c3848fb7048bb6ac (diff)
downloadpuppet-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')
-rw-r--r--lib/puppet/indirector/report/processor.rb2
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.