Skip to content

Commit

Permalink
keep track of all requested data files
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Dec 8, 2016
1 parent e7bff7d commit 63fc050
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions es_relval_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@ def es_parse_log(logFile):
try:
rootfile = l.split(" Initiating request to open file ")[1].split(" ")[0]
if (not "file:" in rootfile) and (not rootfile in datasets):
if (i+2)<total_lines:
if (rootfile in lines[i+1]) and (rootfile in lines[i+2]) and ("Successfully opened file " in lines[i+1]) and ("Closed file " in lines[i+2]):
print "File read with no valid events: %s" % rootfile
continue
#if (i+2)<total_lines:
# if (rootfile in lines[i+1]) and (rootfile in lines[i+2]) and ("Successfully opened file " in lines[i+1]) and ("Closed file " in lines[i+2]):
# print "File read with no valid events: %s" % rootfile
# continue
datasets.append(rootfile)
except: pass
continue
Expand Down

0 comments on commit 63fc050

Please sign in to comment.