aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/timer.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-07-13 16:02:50 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-07-13 16:02:50 +0100
commite140af144e987ff7f6d767f2dc48b9cf685803fd (patch)
tree4a01971890865b4b3ca837d563bc673cbb787de8 /lib/mauve/timer.rb
parentd28af4ec946c6aa4b645b73cef47d7e0c680bc0d (diff)
Big commit
* Added manpages for all binaries * Added log-reopening for mauvealert-server, and logrotate snippet * mauveserver now adds a user on install, and runs as that user * Big logging tidy-up * Alert subjects are only overwritten by the source, when the subject in the databse is empty * Removed various attr_writer methods that were being redifined * Added a notes box to the acknowledge form, but this doesn't work yet
Diffstat (limited to 'lib/mauve/timer.rb')
-rw-r--r--lib/mauve/timer.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/mauve/timer.rb b/lib/mauve/timer.rb
index 40abe43..f6ada88 100644
--- a/lib/mauve/timer.rb
+++ b/lib/mauve/timer.rb
@@ -14,6 +14,7 @@ module Mauve
attr_accessor :sleep_interval, :last_run_at
def initialize
+ super
@initial_sleep = 300
@initial_sleep_threshold = 300
end
@@ -29,7 +30,6 @@ module Mauve
# look for the next alert_changed object.
#
if next_alert.nil? or next_alert.due_at > MauveTime.now
- logger.debug("Next alert was #{next_alert} due at #{next_alert.due_at}") unless next_alert.nil?
next_alert_changed = AlertChanged.find_next_with_event
end
@@ -51,12 +51,12 @@ module Mauve
#
# Sleep indefinitely
#
- logger.debug("Nothing to notify about -- snoozing indefinitely.")
+ logger.info("Nothing to notify about -- snoozing indefinitely.")
else
#
# La la la nothing to do.
#
- logger.debug("Next to notify: #{next_to_notify} -- snoozing until #{next_to_notify.due_at}")
+ logger.info("Next to notify: #{next_to_notify} -- snoozing until #{next_to_notify.due_at}")
end
#