aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/alert.rb')
-rw-r--r--lib/mauve/alert.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index 07421d5..28dfcf1 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -235,7 +235,11 @@ module Mauve
public
def notify
- self.alert_group.notify(self)
+ if self.alert_group.nil?
+ logger.warn "Could not notify for #{self} since there are no matching alert groups"
+ else
+ self.alert_group.notify(self)
+ end
end
def acknowledge!(person, ack_until = Time.now+3600)
@@ -531,7 +535,8 @@ module Mauve
alert_db.clear!
end
end
-
+
+ return nil
end
def logger