logstash-filter-exceptioncategory 0.1.78 → 0.1.79

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: 26110247a453ddaccfd9a7732303e2843c19f514
4
- data.tar.gz: de3622a0c7ba9a35f7e7705846f35935f758aca1
3
+ metadata.gz: a51047e08ab57a050b0136f258048cbac19c2148
4
+ data.tar.gz: 8a61e4263a6af535b4786c546ff65fdb10b6ae49
5
5
  SHA512:
6
- metadata.gz: 6dd28dcec7e6d29a7806463de12564d434e9429d5d8742bb5757b021a3c5d44eba12c2239afb003976f320631690984b5560c95dae74b1ee8eef9c25057d49cd
7
- data.tar.gz: ed2e2f97f5c2166c9cf1fadb69837b0717a85cab63675bdf22cf07066bc2ff64a2a51bb85e991167e8c7d195ba36808c0bd9c47407307cad03536c94cce54329
6
+ metadata.gz: 3e75a5a7059032cf387da89fb724e808fc5d3d1b569af3b4e7f49288707533b160d520e9c1a9949359dfac49d5275e653ed12891ac922df7a9fdaf871bd8df64
7
+ data.tar.gz: 46d6484ae5462fea3c06eace429601c069160cfcbe8720ee7521b3aca1d870fb9c4b4faf69321ba41cd372ba93e380a37573729005cf69f68796c86ed3662610
@@ -30,10 +30,8 @@ class LogStash::Filters::ExceptionCategory < LogStash::Filters::Base
30
30
  @logger.debug? && @logger.debug("Event received", :event => event)
31
31
  @logger.debug? && @logger.debug("Event json", :event => event.to_json)
32
32
 
33
- if(event.include?("SagaException"))
34
- if(event["SagaException"].include?("Exception"))
35
- event_exception = event["SagaException"]["Exception"]["ExceptionType"]
36
- end
33
+ unless event["SagaException"].nil?
34
+ event_exception = event["SagaException"]["Exception"]["ExceptionType"]
37
35
  end
38
36
 
39
37
  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.78'
5
+ s.version = '0.1.79'
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.78
4
+ version: 0.1.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ragnar Adolf Árnason