diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mauve/alert_changed.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/mauve/alert_changed.rb b/lib/mauve/alert_changed.rb index 2e3ac7d..1712c7e 100644 --- a/lib/mauve/alert_changed.rb +++ b/lib/mauve/alert_changed.rb @@ -108,7 +108,13 @@ module Mauve # self.remind_at = nil - save + if self.save + logger.debug "Successfully cleared #{self}" + true + else + logger.warn "Failed to clear #{self} -- this will lead to duplicate reminders." + false + end end # The time this AlertChanged should next be polled at, or nil. Mimics |