mirror of https://github.com/fail2ban/fail2ban
Merge pull request #404 from grooverdan/f2b-client-logSys.err
BF: log errors to syslog and respect the showRet parameterpull/409/head
commit
3cd179112f
|
@ -155,8 +155,9 @@ class Fail2banClient:
|
||||||
if showRet:
|
if showRet:
|
||||||
print beautifier.beautify(ret[1])
|
print beautifier.beautify(ret[1])
|
||||||
else:
|
else:
|
||||||
logSys.debug("NOK: " + `ret[1].args`)
|
logSys.error("NOK: " + `ret[1].args`)
|
||||||
print beautifier.beautifyError(ret[1])
|
if showRet:
|
||||||
|
print beautifier.beautifyError(ret[1])
|
||||||
return False
|
return False
|
||||||
except socket.error:
|
except socket.error:
|
||||||
if showRet:
|
if showRet:
|
||||||
|
|
Loading…
Reference in New Issue