diff options
| -rw-r--r-- | lib/puppet/transaction/report.rb | 5 | ||||
| -rw-r--r-- | lib/puppet/util/log/destinations.rb | 2 | ||||
| -rwxr-xr-x | spec/unit/util/log/destinations.rb | 2 |
3 files changed, 2 insertions, 7 deletions
diff --git a/lib/puppet/transaction/report.rb b/lib/puppet/transaction/report.rb index 0fb1db03c..6d365a5f9 100644 --- a/lib/puppet/transaction/report.rb +++ b/lib/puppet/transaction/report.rb @@ -44,11 +44,6 @@ class Puppet::Transaction::Report @metrics[metric.name] = metric end - # Add a new log message. - def newlog(msg) - @logs << msg - end - # Provide a summary of this report. def summary ret = "" diff --git a/lib/puppet/util/log/destinations.rb b/lib/puppet/util/log/destinations.rb index b11aa2b0c..89f87dbec 100644 --- a/lib/puppet/util/log/destinations.rb +++ b/lib/puppet/util/log/destinations.rb @@ -209,7 +209,7 @@ Puppet::Util::Log.newdesttype :report do end def handle(msg) - @report.newlog(msg) + @report << msg end end diff --git a/spec/unit/util/log/destinations.rb b/spec/unit/util/log/destinations.rb index 0bc416e74..b43c75730 100755 --- a/spec/unit/util/log/destinations.rb +++ b/spec/unit/util/log/destinations.rb @@ -17,7 +17,7 @@ describe Puppet::Util::Log.desttypes[:report] do report = mock 'report' dest = @dest.new(report) - report.expects(:newlog).with("my log") + report.expects(:<<).with("my log") dest.handle "my log" end |
