Skip to content

Commit

Permalink
Try all channels when skip_alert_with_no_subscribers is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriosLisenko committed Aug 13, 2019
1 parent 9241278 commit 943d8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/noticent/dispatcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def dispatch
to_send = filter_recipients(recs, channel.name)

if to_send.count == 0 && @config.skip_alert_with_no_subscribers
Noticent.configuration.logger.info "Skipping alert #{alert.name} as they are no subscribers"
return
Noticent.configuration.logger.info "Skipping notification of alert #{alert.name} on channel #{channel.name} as there are no subscribers"
next
end

channel_instance = channel.instance(@config, to_send, @payload, @configuration)
Expand Down

0 comments on commit 943d8b6

Please sign in to comment.