summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-20 16:33:58 +0000
committerLuke Kanies <luke@madstop.com>2005-07-20 16:33:58 +0000
commitc577e57871837b50d8b98c9031b23ab72c0ff119 (patch)
treec045a6cbac992fb0a3db9e63b832f164a82e28d4
parent99eedb3f15d55a32d4654ffea6c264b9e65c40c4 (diff)
downloadpuppet-c577e57871837b50d8b98c9031b23ab72c0ff119.tar.gz
puppet-c577e57871837b50d8b98c9031b23ab72c0ff119.tar.xz
puppet-c577e57871837b50d8b98c9031b23ab72c0ff119.zip
reducing debugging
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@428 980ebf18-57e1-0310-9a29-db15c13687c0
-rw-r--r--lib/puppet/fact.rb2
-rw-r--r--lib/puppet/type/state.rb10
2 files changed, 5 insertions, 7 deletions
diff --git a/lib/puppet/fact.rb b/lib/puppet/fact.rb
index c9707de4f..f17131d02 100644
--- a/lib/puppet/fact.rb
+++ b/lib/puppet/fact.rb
@@ -16,11 +16,9 @@ module Puppet
class Fact
def Fact.[](name)
fact = Facter[name]
- Puppet.debug "Got fact of type %s" % fact.class
if fact.value.nil?
raise "Could not retrieve fact %s" % name
end
- Puppet.debug("fact: got %s from %s for %s" % [fact.value,fact,name])
return fact.value
end
diff --git a/lib/puppet/type/state.rb b/lib/puppet/type/state.rb
index 7bbc22b8e..00a1f0815 100644
--- a/lib/puppet/type/state.rb
+++ b/lib/puppet/type/state.rb
@@ -42,10 +42,10 @@ class State < Puppet::Element
# if we're not in sync, return a statechange capable of putting us
# in sync
def evaluate
- debug "evaluating %s" % self
+ #debug "evaluating %s" % self
self.retrieve
if self.insync?
- debug "%s is in sync" % self
+ #debug "%s is in sync" % self
return nil
else
return Puppet::StateChange.new(self)
@@ -75,8 +75,8 @@ class State < Puppet::Element
# we aren't actually comparing the states themselves, we're only
# comparing the "should" value with the "is" value
def insync?
- debug "%s value is '%s', should be '%s'" %
- [self,self.is.inspect,self.should.inspect]
+ #debug "%s value is '%s', should be '%s'" %
+ # [self,self.is.inspect,self.should.inspect]
self.is == self.should
end
#---------------------------------------------------------------
@@ -98,7 +98,7 @@ class State < Puppet::Element
@noop = false
end
tmp = @noop || self.parent.noop || Puppet[:noop] || false
- debug "noop is %s" % tmp
+ #debug "noop is %s" % tmp
return tmp
end
#---------------------------------------------------------------