sensu 0.17.1 → 0.17.2

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: 59189ea63a91ecc77669ef407887f2a91be61476
4
- data.tar.gz: 3e38ff971911571134ebfca7dc32e1d4ec187434
3
+ metadata.gz: 0a0fac0647fef9c4dad920c91d477e0aac3ccefe
4
+ data.tar.gz: f0ba6869b8a2e76e9c9a673332a87af8f9b30262
5
5
  SHA512:
6
- metadata.gz: 91480595d18e1b80e38acf40edbabd2aa7fe8ffe9f6493a12f7e56963e1ca60bac9ef88011bcd01f3795ee0cce3ba7a12fc974838ab87bd88c975977381261f3
7
- data.tar.gz: 37f8686e67f7ca4c694c775bdd2f59d05da38520f66de9aaaf8ddf8476198d70de8c354b4596fcafd7a28ac4ea7f7defb94186c6a85f849dfbc7f2b678563264
6
+ metadata.gz: 10ccf9155bbda665fe9c8b590cb93bc413e1825324069d00187d58466dd9a86ad0a6d99608796aabeaa39b3c1daac6b49e3d6612c7b4bf875c1a88c5e61d5186
7
+ data.tar.gz: 8ece96457154d1d64fab3516afc527c5690397e84ad2d3c412ae25c1c7b1c467eba9f374da2cde8c4daa9bef1625bdc17ac7ad6b99beb469d6504b7a6db31170
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: ruby
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