logstash-filter-exceptioncategory 0.1.73 → 0.1.74

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe014769209dafd4b764241048a5e82aa66720e8
4
- data.tar.gz: c5182306a6fccf135e995510356bed490a106e28
3
+ metadata.gz: b14bd3f117b750b9205dd03df97a2a52984a4068
4
+ data.tar.gz: 64150c562e76efff136cbbec657681729e363afa
5
5
  SHA512:
6
- metadata.gz: bf1693ad5afbffe3e07dac467033c5ec5a66ab371ca9ae68530fb4db3edf6d1fcb305a894e4b28ed3492605a96ba7d6470569efe772b5966922fa0116b9f0f84
7
- data.tar.gz: 31932b59386d7be0e7706353a89e6d9fb84b9de10bc17e508a6d714cae352bfddc64e64ae1fb84a113691aee34a26516facb922b99f944a57b22e77294443bb4
6
+ metadata.gz: e02113d327fd918e93153859690b73e77f58a60f72eafebae7e684ea81e4fda83cf321daf53b5dc5492e45be5a11eaf6e5a15020d14b43f09d62dd7f8a1b986d
7
+ data.tar.gz: c7af4453b121404283da091ff96f4d403682f09b8751aca8fdc5c914073be5e4de77bcfdc9f454329c2a76e9a22e5ab91d85fa4f2c4e0e728b426984c7367a0c
@@ -30,8 +30,10 @@ class LogStash::Filters::ExceptionCategory < LogStash::Filters::Base
30
30
  @logger.debug("Event is now: #{event}")
31
31
  @logger.debug("Event class: #{event.class}")
32
32
 
33
- if(event.include?("SagaException") and event["SagaException"].include?("Exception"))
34
- event_exception = event["SagaException"]["Exception"]["ExceptionType"]
33
+ if(event.include?("SagaException"))
34
+ if(event["SagaException"].include?("Exception"))
35
+ event_exception = event["SagaException"]["Exception"]["ExceptionType"]
36
+ end
35
37
  end
36
38
 
37
39
  unless categories.key?(event_exception)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'logstash-filter-exceptioncategory'
5
- s.version = '0.1.73'
5
+ s.version = '0.1.74'
6
6
  s.licenses = ['Apache-2.0']
7
7
  s.summary = "Categorizes exceptions"
8
8
  s.description = "Fetches a remote json file which includes categorization of exceptions. Uses that categorization to attach a category to an event depending on which exception the event has."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-filter-exceptioncategory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.73
4
+ version: 0.1.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ragnar Adolf Árnason