[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, experimental, updated. debian/2.6.8-1-844-g7ec39d5
Paul Berry
paul at puppetlabs.com
Tue May 10 08:02:06 UTC 2011
The following commit has been merged in the experimental branch:
commit e8254856a5c9fa532886148cbe2b0f8d87179f01
Author: Paul Berry <paul at puppetlabs.com>
Date: Thu Nov 18 11:09:46 2010 -0800
Maint: Added assertion to make sure Log.close_all succeeds
If the hash containing log destinations gets corrupted, Log.close_all
could fail silently. This change adds an exception to make these
failures easier to debug should they ever happen again.
diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb
index 36a765c..a5aacc2 100644
--- a/lib/puppet/util/log.rb
+++ b/lib/puppet/util/log.rb
@@ -57,6 +57,7 @@ class Puppet::Util::Log
destinations.keys.each { |dest|
close(dest)
}
+ raise Puppet::DevError.new("Log.close_all failed to close #{@destinations.keys.inspect}") if !@destinations.empty?
end
# Flush any log destinations that support such operations.
--
Puppet packaging for Debian
More information about the Pkg-puppet-devel
mailing list