diff options
| author | Luke Kanies <luke@madstop.com> | 2008-10-31 16:01:28 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-10-31 16:01:28 -0500 |
| commit | e76cac7df102389b7ee487be4031caf0e7e2ab04 (patch) | |
| tree | 0b9bd8d260613a5b41d9c72fa984065e5cb2d5f4 /lib/puppet/util | |
| parent | 801b8a643d353176675023adaa25f26d0ec67403 (diff) | |
| parent | f0635179b60f5cf30d1f7070f4c3c998ad5131c0 (diff) | |
Merge branch '0.24.x'
Conflicts:
CHANGELOG
Diffstat (limited to 'lib/puppet/util')
| -rw-r--r-- | lib/puppet/util/log.rb | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb index 0dfd36dfa..b57faad42 100644 --- a/lib/puppet/util/log.rb +++ b/lib/puppet/util/log.rb @@ -369,11 +369,7 @@ class Puppet::Util::Log end def handle(msg) - # Only add messages from objects, since anything else is - # probably unrelated to this run. - if msg.objectsource? - @report.newlog(msg) - end + @report.newlog(msg) end end @@ -505,15 +501,6 @@ class Puppet::Util::Log Log.newmessage(self) end - # Was the source of this log a Puppet resource or parameter? - def objectsource? - if defined? @objectsource and @objectsource - @objectsource - else - false - end - end - # If they pass a source in to us, we make sure it is a string, and # we retrieve any tags we can. def source=(source) @@ -521,10 +508,8 @@ class Puppet::Util::Log # We can't just check for whether it responds to :path, because # plenty of providers respond to that in their normal function. if (source.is_a?(Puppet::Type) or source.is_a?(Puppet::Parameter)) and source.respond_to?(:path) - @objectsource = true @source = source.path else - @objectsource = false @source = source.to_s end if source.respond_to?(:tags) |
