aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert_changed.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-07-13 16:44:17 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-07-13 16:44:17 +0100
commite07cea09e884607d6ad005f5e2822251ca31b9ba (patch)
treeafc3aee746bb36c28e59d5f7b0f6dd896824307f /lib/mauve/alert_changed.rb
parente140af144e987ff7f6d767f2dc48b9cf685803fd (diff)
Further tweaks.
Diffstat (limited to 'lib/mauve/alert_changed.rb')
-rw-r--r--lib/mauve/alert_changed.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mauve/alert_changed.rb b/lib/mauve/alert_changed.rb
index 740b9dc..4dcba8e 100644
--- a/lib/mauve/alert_changed.rb
+++ b/lib/mauve/alert_changed.rb
@@ -92,7 +92,6 @@ module Mauve
end
- logger.info "Reminding someone about #{self.inspect}"
alert_group = AlertGroup.matches(alert)[0]
@@ -100,11 +99,13 @@ module Mauve
logger.info((alert_group ?
"Alert already acknowledged" :
"No alert group matches any more"
- ) + ", no reminder due"
+ ) + " => no reminder due for #{self.alert.inspect}"
)
self.remind_at = nil
save
else
+ logger.info "Sending a reminder for #{self.alert.inspect}"
+
saved = false
unless alert_group.notifications.nil?