diff options
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/util/log/destinations.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/puppet/util/log/destinations.rb b/lib/puppet/util/log/destinations.rb index 403733d35..e748e5108 100644 --- a/lib/puppet/util/log/destinations.rb +++ b/lib/puppet/util/log/destinations.rb @@ -218,17 +218,12 @@ end Puppet::Util::Log.newdesttype :array do match "Array" - attr_accessor :messages - def initialize - @messages = [] + def initialize(messages) + @messages = messages end def handle(msg) @messages << msg end - - def close - @messages.clear - end end |