summaryrefslogtreecommitdiffstats
path: root/lib/puppet/storage.rb
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-10-26 04:44:25 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-10-26 04:44:25 +0000
commit0ae5e3392597452acf6a2e9f0d4ac976b8ec9846 (patch)
treee2307bce0ffacb9bf8ed54b0ebe84632b51fd9b8 /lib/puppet/storage.rb
parent0d3db7984fd40769cbb29cde76e081cb06204710 (diff)
downloadpuppet-0ae5e3392597452acf6a2e9f0d4ac976b8ec9846.tar.gz
puppet-0ae5e3392597452acf6a2e9f0d4ac976b8ec9846.tar.xz
puppet-0ae5e3392597452acf6a2e9f0d4ac976b8ec9846.zip
Adding logging methods to all Puppet::Element instances, and converting all instance log statements to use those methods. Additionally modified logging to take advantage of this by including the path of the logging object in the output. Logs will still need some cleanup to avoid duplicate information.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@731 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/storage.rb')
-rw-r--r--lib/puppet/storage.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/storage.rb b/lib/puppet/storage.rb
index c7c4a7ae1..24a6b6920 100644
--- a/lib/puppet/storage.rb
+++ b/lib/puppet/storage.rb
@@ -1,5 +1,3 @@
-# $Id$
-
module Puppet
# a class for storing state
class Storage
@@ -26,7 +24,7 @@ module Puppet
def self.load
if Puppet[:checksumfile].nil?
- raise "Somehow the statefile is nil"
+ raise Puppet::DevError, "Somehow the statefile is nil"
end
unless File.exists?(Puppet[:checksumfile])
@@ -89,3 +87,5 @@ module Puppet
end
end
end
+
+# $Id$