mirror of https://github.com/fail2ban/fail2ban
ENH: fail2ban-regex now uses iteraable for log file
Previosuly, the whole file was read in firstpull/303/merge
parent
af46cd0e4f
commit
879c1a32f7
|
@ -377,7 +377,7 @@ if __name__ == "__main__":
|
||||||
try:
|
try:
|
||||||
hdlr = open(cmd_log)
|
hdlr = open(cmd_log)
|
||||||
print "Use log file : %s" % cmd_log
|
print "Use log file : %s" % cmd_log
|
||||||
test_lines = hdlr.readlines()
|
test_lines = hdlr # Iterable
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
print e
|
print e
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
Loading…
Reference in New Issue