sensu 0.17.1-java → 0.17.2-java

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: 1ef4795a80c565625fc3759a3560666fb4c44757
4
- data.tar.gz: 4c34c6daafa600fc4d0c1b3af5a040a1fa4ae637
3
+ metadata.gz: 522c29de590fd364e34192fd4094e14c2b5b6e9c
4
+ data.tar.gz: b3288099fa21bb8ecaaa2ee8ce3e2d499b66fda7
5
5
  SHA512:
6
- metadata.gz: f75462a8c65537eb7ce8b0d923e39abf30aca22a2dbd710b195a464711b663d26aa38241b8531911c4ec0168ba3f7b950f8d6041ef6007533592a833ccb986f1
7
- data.tar.gz: cddc959f388ec22776eb63e87f4cf0a2852bad8b9c466fb8e1117561768d2005ba1d7e4229437387a555128ecc49d5ee21d70be20ad4ca059cb8db62e19317c8
6
+ metadata.gz: 41de9b5dd4f14b50b9dcefe87f2519922852a357465dcf472953dac22ca40c156fa999e93832c69c7092146a919040e3956714e57374b071de49e7969f255977
7
+ data.tar.gz: 26331f426dfe948a9a2a8b92b8afbf9bf2db305fa1eb21f00259287193264117df0c015762f9a20bfc20cd0dece3e7f506463e03e0003a3edacb415a02d4b197
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.17.2 - 2015-04-08
2
+
3
+ ### Other
4
+
5
+ Fixed a bug where the Sensu server was unable to stop due to the handling
6
+ event count not being decremented when events were filtered.
7
+
1
8
  ## 0.17.1 - 2015-03-30
2
9
 
3
10
  ### Features
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "0.17.1"
4
+ VERSION = "0.17.2"
5
5
 
6
6
  # Sensu check severities.
7
7
  SEVERITIES = %w[ok warning critical unknown]
@@ -285,14 +285,19 @@ module Sensu
285
285
  # @param callback [Proc]
286
286
  def filter_event(handler, event, &callback)
287
287
  details = {:handler => handler, :event => event}
288
- if handling_disabled?(event)
289
- @logger.info("event handling disabled for event", details)
290
- elsif !handle_action?(handler, event)
291
- @logger.info("handler does not handle action", details)
292
- elsif !handle_severity?(handler, event)
293
- @logger.info("handler does not handle event severity", details)
294
- elsif handler_subdued?(handler, event)
295
- @logger.info("handler is subdued", details)
288
+ filter_message = case
289
+ when handling_disabled?(event)
290
+ "event handling disabled for event"
291
+ when !handle_action?(handler, event)
292
+ "handler does not handle action"
293
+ when !handle_severity?(handler, event)
294
+ "handler does not handle event severity"
295
+ when handler_subdued?(handler, event)
296
+ "handler is subdued"
297
+ end
298
+ if filter_message
299
+ @logger.info(filter_message, details)
300
+ @handling_event_count -= 1 if @handling_event_count
296
301
  else
297
302
  event_filtered?(handler, event) do |filtered|
298
303
  unless filtered
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.1
4
+ version: 0.17.2
5
5
  platform: java
6
6
  authors:
7
7
  - Sean Porter
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-30 00:00:00.000000000 Z
12
+ date: 2015-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json