mirror of https://github.com/fail2ban/fail2ban
BF: log errors to syslog and respect the showRet parameter
parent
b61fe0f12d
commit
2b3e866f5f
|
@ -155,7 +155,8 @@ class Fail2banClient:
|
|||
if showRet:
|
||||
print beautifier.beautify(ret[1])
|
||||
else:
|
||||
logSys.debug("NOK: " + `ret[1].args`)
|
||||
logSys.error("NOK: " + `ret[1].args`)
|
||||
if showRet:
|
||||
print beautifier.beautifyError(ret[1])
|
||||
return False
|
||||
except socket.error:
|
||||
|
|
Loading…
Reference in New Issue