summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util/log.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/puppet/util/log.rb b/lib/puppet/util/log.rb
index b57faad42..a74432021 100644
--- a/lib/puppet/util/log.rb
+++ b/lib/puppet/util/log.rb
@@ -104,6 +104,13 @@ class Puppet::Util::Log
end
end
+ def self.close_all
+ # And close all logs except the console.
+ destinations.each do |dest|
+ close(dest)
+ end
+ end
+
# Flush any log destinations that support such operations.
def Log.flush
@destinations.each { |type, dest|