From 2b3e866f5f78ba791765de925238784c0113c5b6 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Tue, 22 Oct 2013 23:25:43 +1100 Subject: [PATCH] BF: log errors to syslog and respect the showRet parameter --- fail2ban-client | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fail2ban-client b/fail2ban-client index c18b7d55..1237680b 100755 --- a/fail2ban-client +++ b/fail2ban-client @@ -155,8 +155,9 @@ class Fail2banClient: if showRet: print beautifier.beautify(ret[1]) else: - logSys.debug("NOK: " + `ret[1].args`) - print beautifier.beautifyError(ret[1]) + logSys.error("NOK: " + `ret[1].args`) + if showRet: + print beautifier.beautifyError(ret[1]) return False except socket.error: if showRet: