mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Removing logging in favor of just throwing. Removing user from message as it doesn't add any value.
This commit is contained in:
parent
419e380870
commit
6a1da5e164
1 changed files with 1 additions and 4 deletions
|
|
@ -165,10 +165,7 @@ class SMTPAction(ActionBase):
|
|||
if self.ssl: # pragma: no cover
|
||||
tls_result = smtp.starttls()[0];
|
||||
if tls_result != 220: # pragma: no cover
|
||||
self._logSys.error(
|
||||
"Failed to starttls() on '%s' for user '%s': %s",
|
||||
self.host, self.user, tls_result)
|
||||
raise Exception("Failed to starttls()")
|
||||
raise Exception("Failed to starttls() on '%s': %s" % (self.host, tls_result))
|
||||
|
||||
if self.user and self.password: # pragma: no cover (ATM no tests covering that)
|
||||
smtp.login(self.user, self.password)
|
||||
|
|
|
|||
Loading…
Reference in a new issue