logstash-input-exec 3.1.1 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39920db332c1f87eb39fbe1637a003c15ced3891
4
- data.tar.gz: 8d0a03d854fbd860823a8e5f2bbd27308866c258
3
+ metadata.gz: f97f89c202d17d0b430215071db9de439b85623d
4
+ data.tar.gz: 60cd3e1341b6a36ef2f0811b2f1bec79a4efc806
5
5
  SHA512:
6
- metadata.gz: 975761ea445e360d30e61ed46828e12504803c2781ded750c1235ecb146d6cfe121ffff4be004eb1c6e3b6e1d061bc2242ccfda783c74c21aa79131492f388d0
7
- data.tar.gz: bc4f85bbba3c053426b8314ebb5e91c399b3fb0082a7dafbf75d09d1b96da5eea18fdd0432b6134ceaf1d7fbffdef7fbe97dcdbf97111bec67e86498a68aade8
6
+ metadata.gz: fbf9cf15ce2a8866d34fd3c8daa7d5bc9a2ca8a83709eb6ef118361b33f885a4674be626974ce23582d0de5501f3c991fcba59945d6c6b5d3081e563727a4273
7
+ data.tar.gz: 8aea74ab4a435e8e14ed5fc27cb2443d425316694805c3411e373372a26c785eadabe95b48417e92e4dab6c189d24affc3478fcfef59dcfc17f644a3302da15a
@@ -1,3 +1,6 @@
1
+ ## 3.1.2
2
+ - Move some log messages from info to debug to avoid noise
3
+
1
4
  ## 3.1.1
2
5
  - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
3
6
 
@@ -40,7 +40,7 @@ class LogStash::Inputs::Exec < LogStash::Inputs::Base
40
40
  execute(@command, queue)
41
41
  duration = Time.now - start
42
42
 
43
- @logger.info? && @logger.info("Command completed", :command => @command, :duration => duration)
43
+ @logger.debug? && @logger.debug("Command completed", :command => @command, :duration => duration)
44
44
 
45
45
  wait_until_end_of_interval(duration)
46
46
  end
@@ -71,7 +71,7 @@ class LogStash::Inputs::Exec < LogStash::Inputs::Base
71
71
  # @param [String] A command string
72
72
  # @param [Array or Queue] A queue to append events to
73
73
  def execute(command, queue)
74
- @logger.info? && @logger.info("Running exec", :command => command)
74
+ @logger.debug? && @logger.debug("Running exec", :command => command)
75
75
  begin
76
76
  @io = IO.popen(command)
77
77
  @codec.decode(@io.read) do |event|
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-exec'
4
- s.version = '3.1.1'
4
+ s.version = '3.1.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Run command line tools and capture the whole output as an event."
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -15,7 +15,8 @@ describe LogStash::Inputs::Exec do
15
15
  let(:queue) { [] }
16
16
  let(:loggr) { double('loggr') }
17
17
 
18
- before do
18
+ before :each do
19
+ expect(LogStash::Inputs::Exec).to receive(:logger).and_return(loggr).exactly(7).times
19
20
  allow(loggr).to receive(:info)
20
21
  allow(loggr).to receive(:info?)
21
22
  allow(loggr).to receive(:warn)
@@ -25,7 +26,6 @@ describe LogStash::Inputs::Exec do
25
26
  end
26
27
 
27
28
  it "enqueues some events" do
28
- input.logger = loggr
29
29
  input.register
30
30
  expect(loggr).not_to receive(:error)
31
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-exec
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.6.3
113
+ rubygems_version: 2.4.8
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Run command line tools and capture the whole output as an event.