Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Commit

Permalink
test for handler extension when logging in filter.rb, and use extensi…
Browse files Browse the repository at this point in the history
…on definition instead of full handler extension object.
  • Loading branch information
Jef Spaleta committed Jun 13, 2018
1 parent 6022ef6 commit 742a7b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/sensu/server/filter.rb
Expand Up @@ -192,7 +192,11 @@ def event_filtered?(handler, event)
# filtered.
# @yieldparam event [Hash]
def filter_event(handler, event)
details = {:handler => handler, :event => event}
handler_info = case handler[:type]
when "extension" then handler.definition
else handler
end
details = {:handler => handler_info, :event => event}
filter_message = case
when handling_disabled?(event)
"event handling disabled for event"
Expand Down

0 comments on commit 742a7b4

Please sign in to comment.