lib/logstash/outputs/email.rb in logstash-output-email-3.0.0 vs lib/logstash/outputs/email.rb in logstash-output-email-3.0.1
- old
+ new
@@ -102,10 +102,10 @@
@logger.debug("Email Output Registered!", :config => options, :via => @via)
end # def register
public
def receive(event)
- return unless output?(event)
+
@logger.debug? and @logger.debug("Creating mail with these settings : ", :via => @via, :options => @options, :from => @from, :to => @to, :cc => @cc, :subject => @subject, :body => @body, :content_type => @contenttype, :htmlbody => @htmlbody, :attachments => @attachments, :to => to, :to => to)
formatedSubject = event.sprintf(@subject)
formattedBody = event.sprintf(@body)
formattedHtmlBody = event.sprintf(@htmlbody)