diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-23 05:48:42 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-02-23 05:48:42 +0000 |
commit | 89856ecc64fd3356a4aeb4ac965a7c75064a2a85 (patch) | |
tree | bbfd3991e0beed06e865f0c010120f9d686dcad4 | |
parent | 82e02eb53f99fa59d6ea7ba2b3ac35b6ef1ee64a (diff) | |
download | puppet-89856ecc64fd3356a4aeb4ac965a7c75064a2a85.tar.gz puppet-89856ecc64fd3356a4aeb4ac965a7c75064a2a85.tar.xz puppet-89856ecc64fd3356a4aeb4ac965a7c75064a2a85.zip |
Adding a bit more logging
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@930 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-x | bin/puppetd | 1 | ||||
-rw-r--r-- | lib/puppet/storage.rb | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bin/puppetd b/bin/puppetd index f61ee69f3..fb8759057 100755 --- a/bin/puppetd +++ b/bin/puppetd @@ -279,6 +279,7 @@ end client.setcerts trap(:INT) { + Puppet.notice "Caught INT; shutting down" client.shutdown } diff --git a/lib/puppet/storage.rb b/lib/puppet/storage.rb index 59fe4a1fc..959d12c32 100644 --- a/lib/puppet/storage.rb +++ b/lib/puppet/storage.rb @@ -78,7 +78,7 @@ module Puppet end def self.store - #Puppet.debug "Storing state" + Puppet.debug "Storing state" unless FileTest.directory?(File.dirname(Puppet[:statefile])) begin Puppet.recmkdir(File.dirname(Puppet[:statefile])) @@ -97,6 +97,7 @@ module Puppet Puppet::Util.writelock(Puppet[:statefile], 0600) do |file| file.print YAML.dump(@@state) end + Puppet.debug "Stored state" end end end |