mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-08-04 06:39:05 +00:00
ENH: fail2ban-regex now uses iteraable for log file
Previosuly, the whole file was read in first
This commit is contained in:
parent
af46cd0e4f
commit
879c1a32f7
1 changed files with 1 additions and 1 deletions
|
|
@ -377,7 +377,7 @@ if __name__ == "__main__":
|
|||
try:
|
||||
hdlr = open(cmd_log)
|
||||
print "Use log file : %s" % cmd_log
|
||||
test_lines = hdlr.readlines()
|
||||
test_lines = hdlr # Iterable
|
||||
except IOError, e:
|
||||
print e
|
||||
sys.exit(-1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue