1. jordilin
  2. alerta

Commits

jordilin  committed bde4ead

connectSMTP method provided in utils setupmail, so anyone who calls it will
have already a mail notification ready to be actioned

  • Participants
  • Parent commits ec1ecb7
  • Branches default

Comments (0)

Files changed (2)

File log4tail.py

View file
     if options.silence and properties:
         mailAction = setup_mail(properties)
         actions.append(mailAction)
-        mailAction.connectSMTP()
         silence = True
     if options.nomailsilence:
         # silence option with no mail

File log4tailer/utils.py

View file
     password = getpass.getpass()
     mailAction = notifications.Mail(mail_from, mail_to, hostname, username,
             password, port, ssl) 
+    mailAction.connectSMTP()
     return mailAction