Skip to content

Commit

Permalink
added some proint statements
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Nov 29, 2024
1 parent c5f6d81 commit 84c6c10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion es_relval_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ def es_parse_jobreport(payload, logFile):

def es_parse_log(logFile):
stamp = "%s-es" % logFile
if exists(stamp): return
if exists(stamp):
print("Adready process: ",logFile)
return
t = os.path.getmtime(logFile)
timestp = int(t * 1000)
payload = {}
Expand Down Expand Up @@ -213,6 +215,7 @@ def es_parse_log(logFile):
send_payload("ib-dataset-" + week, "relvals-dataset", idx, json.dumps(dataset))
ref = open(stamp, "w")
ref.close()
print("Done processing :",logFile)


if __name__ == "__main__":
Expand Down

0 comments on commit 84c6c10

Please sign in to comment.