logstash-output-pagerduty 3.0.2 → 3.0.3

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: c0f5512c80e090f36922aa87c59d3784575df388
4
- data.tar.gz: 2778afb0efdb174c272f3a7a29f50bc67a4ddd5e
3
+ metadata.gz: d14974f0526ad0234d1f3c5b5c2418465e36e01b
4
+ data.tar.gz: 49901c3cbde49abc8379e54e7011685a78dd1c5f
5
5
  SHA512:
6
- metadata.gz: 76e6c007c3f0f0c89e06eaa2527578cb2b8f0899c21b6f65b0e79622002a89c3ac657230c83e15247431392d285d98cf504dea430453cf2706e6398df92f1521
7
- data.tar.gz: cb0dd51fc271ef20fee25851e1223a1fa4efd97d0971d2bb5a6ad37d810ca4dc7fd5203080c538185f4f4ed1fec015041a31856048d89cc5a69a430607df049b
6
+ metadata.gz: 09c2f1b1133db0453b6af9079fb05d7efb2634270f823c5ae01076b975c76d8d1a4aab36ca38731707be34a47572663ed16f51dba35c0637b98897030aa7c899
7
+ data.tar.gz: 3bbefa94da0299471b5afc81f02737a718128b8af53e59d067f95c7a5eae6dbd2b61640ab8651df13280965e2003febed109a47755ef101a58a24fb1546ff846
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.0.3
2
+ - Reduce logging at info level
3
+
1
4
  ## 3.0.2
2
5
  - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
3
6
 
@@ -62,7 +62,7 @@ class LogStash::Outputs::PagerDuty < LogStash::Outputs::Base
62
62
  end
63
63
  pd_event[:details][:tags] = @tags if @tags
64
64
 
65
- @logger.info("PD Event", :event => pd_event)
65
+ @logger.debug("PD Event", :event => pd_event)
66
66
  begin
67
67
  request = Net::HTTP::Post.new(@pd_uri.path)
68
68
  request.body = LogStash::Json.dump(pd_event)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-pagerduty'
4
- s.version = '3.0.2'
4
+ s.version = '3.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "The PagerDuty output will send notifications based on pre-configured services and escalation policies."
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"
@@ -20,6 +20,7 @@ describe LogStash::Outputs::PagerDuty do
20
20
  it "send the event to pagerduty" do
21
21
  stub_request(:post, /#{subject.pdurl}/).
22
22
  to_return(status: 200, body: "stubbed response", headers: {})
23
+ expect(logger).to receive(:debug).with("PD Event", instance_of(Hash))
23
24
  expect(logger).to receive(:debug).with("PD Response", :response => "stubbed response").once
24
25
  expect(logger).to receive(:debug).with("PD Request", kind_of(Hash)).once
25
26
  expect(logger).to receive(:debug).with("PD Details added:", kind_of(Hash)).twice
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-pagerduty
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
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: The PagerDuty output will send notifications based on pre-configured services and escalation policies.