"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "fail2ban/client/beautifier.py" between
fail2ban-0.10.5.tar.gz and fail2ban-0.11.1.tar.gz

About:

beautifier.py  (fail2ban-0.10.5):beautifier.py  (fail2ban-0.11.1)
skipping to change at line 182 skipping to change at line 182
"properties:\n" % (inC[1], inC[3] ) "properties:\n" % (inC[1], inC[3] )
msg += ", ".join(response) msg += ", ".join(response)
elif inC[2] == "actionmethods": elif inC[2] == "actionmethods":
if len(response) == 0: if len(response) == 0:
msg = "No methods for jail %s action %s" % ( msg = "No methods for jail %s action %s" % (
inC[1], inC[3]) inC[1], inC[3])
else: else:
msg = "The jail %s action %s has the foll owing " \ msg = "The jail %s action %s has the foll owing " \
"methods:\n" % (inC[1], inC[3]) "methods:\n" % (inC[1], inC[3])
msg += ", ".join(response) msg += ", ".join(response)
elif inC[2] == "banip" and inC[0] == "get":
if isinstance(response, list):
sep = " " if len(inC) <= 3 else inC[3]
if sep == "--with-time":
sep = "\n"
msg = sep.join(response)
except Exception: except Exception:
logSys.warning("Beautifier error. Please report the error ") logSys.warning("Beautifier error. Please report the error ")
logSys.error("Beautify %r with %r failed", response, self .__inputCmd, logSys.error("Beautify %r with %r failed", response, self .__inputCmd,
exc_info=logSys.getEffectiveLevel()<=logging.DEBU G) exc_info=logSys.getEffectiveLevel()<=logging.DEBU G)
msg = repr(msg) + repr(response) msg = repr(msg) + repr(response)
return msg return msg
def beautifyError(self, response): def beautifyError(self, response):
logSys.debug("Beautify (error) %r with %r", response, self.__inpu tCmd) logSys.debug("Beautify (error) %r with %r", response, self.__inpu tCmd)
msg = response msg = response
 End of changes. 1 change blocks. 
0 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)