mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 06:37:19 -04:00
Merge pull request #770 from logstash/fix-compress_spooler-with-params
- overriding initialize() isn't obvious, put all plugin setup in
This commit is contained in:
commit
4a035d295f
1 changed files with 1 additions and 6 deletions
|
@ -6,16 +6,11 @@ class LogStash::Codecs::CompressSpooler < LogStash::Codecs::Base
|
|||
config :spool_size, :validate => :number, :default => 50
|
||||
config :compress_level, :validate => :number, :default => 6
|
||||
|
||||
|
||||
public
|
||||
def initialize
|
||||
@buffer = []
|
||||
end
|
||||
|
||||
public
|
||||
def register
|
||||
require "msgpack"
|
||||
require "zlib"
|
||||
@buffer = []
|
||||
end
|
||||
|
||||
public
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue