possibility to increase verbosity up to heavy debug (command line parameter `-vvv`)

pull/1483/head
sebres 9 years ago
parent 53956501da
commit 6353de8b0f

@ -165,6 +165,7 @@ class Fail2banCmdLine():
return None return None
def initCmdLine(self, argv): def initCmdLine(self, argv):
verbose = 1
try: try:
# First time? # First time?
initial = (self._argv is None) initial = (self._argv is None)
@ -232,7 +233,8 @@ class Fail2banCmdLine():
return None return None
except Exception as e: except Exception as e:
output("ERROR: %s" % (e,)) output("ERROR: %s" % (e,))
#logSys.exception(e) if verbose > 2:
logSys.exception(e)
return False return False
def readConfig(self, jail=None): def readConfig(self, jail=None):

Loading…
Cancel
Save