diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-03 18:49:12 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-03 18:49:12 +0000 |
| commit | 7ea739d6c14a1074aeb5a319f13a1412e9573c10 (patch) | |
| tree | d6a146870aa2aa000790396e9a17dd50129c213e /lib | |
| parent | aae9b2aa90c2f1e12baeebe530a0cd8a69fac9c2 (diff) | |
| download | puppet-7ea739d6c14a1074aeb5a319f13a1412e9573c10.tar.gz puppet-7ea739d6c14a1074aeb5a319f13a1412e9573c10.tar.xz puppet-7ea739d6c14a1074aeb5a319f13a1412e9573c10.zip | |
logging config changes at debug, instead of the normal log level
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@973 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/config.rb | 4 | ||||
| -rw-r--r-- | lib/puppet/type.rb | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/puppet/config.rb b/lib/puppet/config.rb index ff6dd9cbf..ab1203221 100644 --- a/lib/puppet/config.rb +++ b/lib/puppet/config.rb @@ -694,6 +694,10 @@ Generated on #{Time.now}. if Process.uid == 0 and value = self.send(:owner) obj[:owner] = value end + + # And set the loglevel to debug for everything + obj[:loglevel] = "debug" + if self.section obj.tags = ["puppet", "configuration", self.section] end diff --git a/lib/puppet/type.rb b/lib/puppet/type.rb index 0e163adaf..e719c7ae7 100644 --- a/lib/puppet/type.rb +++ b/lib/puppet/type.rb @@ -1725,7 +1725,7 @@ class Type < Puppet::Element # now record how many changes we've resulted in Puppet::Metric.add(self.class,self,:changes,changes.length) if changes.length > 0 - self.info "%s change(s)" % + self.debug "%s change(s)" % [changes.length] end self.cache(:checked, now) |
