aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/notifiers/email.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/notifiers/email.rb')
-rw-r--r--lib/mauve/notifiers/email.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mauve/notifiers/email.rb b/lib/mauve/notifiers/email.rb
index 3134135..8efdbec 100644
--- a/lib/mauve/notifiers/email.rb
+++ b/lib/mauve/notifiers/email.rb
@@ -30,10 +30,14 @@ module Mauve
def logger
@logger ||= Log4r::Logger.new self.class.to_s.sub(/::Default$/,"")
-
end
def send_alert(destination, alert, all_alerts, conditions = {})
+
+ logger.debug [destination, alert, all_alerts, conditions]
+
+ return false if destination.nil?
+
message = prepare_message(destination, alert, all_alerts, conditions)
args = [@server, @port]
args += [@username, @password, @login_method.to_sym] if @login_method