mirror of https://github.com/fail2ban/fail2ban
added verbosity patch from one of my branches. fixed stupid indents
parent
1f3e33e384
commit
ed6a45f1a6
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
diff -x '*~' -Naur fail2ban-0.6.1.pre/fail2ban.py fail2ban-0.6.1.post/fail2ban.py
|
diff -x '*~' -Naur fail2ban-0.6.1.pre/fail2ban.py fail2ban-0.6.1.post/fail2ban.py
|
||||||
--- fail2ban-0.6.1.pre/fail2ban.py 2006-03-19 00:20:44.000000000 -0500
|
--- fail2ban-0.6.1.pre/fail2ban.py 2006-03-19 00:20:44.000000000 -0500
|
||||||
+++ fail2ban-0.6.1.post/fail2ban.py 2006-07-03 23:29:58.000000000 -0400
|
+++ fail2ban-0.6.1.post/fail2ban.py 2006-07-03 23:39:20.000000000 -0400
|
||||||
@@ -161,9 +161,11 @@
|
@@ -161,9 +161,11 @@
|
||||||
"""
|
"""
|
||||||
# enabledsections can be defined just from the command line
|
# enabledsections can be defined just from the command line
|
||||||
|
@ -29,9 +29,9 @@ diff -x '*~' -Naur fail2ban-0.6.1.pre/fail2ban.py fail2ban-0.6.1.post/fail2ban.p
|
||||||
conf["enabledsections"] = map(lambda x: x.upper(),
|
conf["enabledsections"] = map(lambda x: x.upper(),
|
||||||
re.split("[:, \t\n]", opt[1]))
|
re.split("[:, \t\n]", opt[1]))
|
||||||
|
|
||||||
+ # Let's choose the maximal verbosity from cmdLine and config
|
+ # Let's choose the maximal verbosity from cmdLine and config
|
||||||
+ # files: it would better describe the intent of the user
|
+ # files: it would better describe the intent of the user
|
||||||
+ conf["verbose"] = max(cmdLineVerbose, conf["verbose"])
|
+ conf["verbose"] = max(cmdLineVerbose, conf["verbose"])
|
||||||
+
|
+
|
||||||
+
|
+
|
||||||
+presetVerbosityLevel = 0
|
+presetVerbosityLevel = 0
|
||||||
|
|
Loading…
Reference in New Issue