aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/mauve/heartbeat.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/mauve/heartbeat.rb b/lib/mauve/heartbeat.rb
index d07e6fc..9c0b133 100644
--- a/lib/mauve/heartbeat.rb
+++ b/lib/mauve/heartbeat.rb
@@ -104,8 +104,14 @@ module Mauve
update.alert << message
- Mauve::Sender.new(self.destination).send(update)
- logger.debug "Sent to #{self.destination}"
+ begin
+ Mauve::Sender.new(self.destination).send(update)
+ logger.debug "Sent to #{self.destination}"
+ rescue => e
+ logger.error "Caught #{e.class}: #{e.message}"
+ logger.debug e.backtrace.join("\n")
+ raise
+ end
sleep @send_every
end