From 99a4a417b7a3c1ca756e56c70924c402634e1725 Mon Sep 17 00:00:00 2001 From: Alexey Date: Mon, 8 Oct 2018 21:09:42 +0300 Subject: [PATCH] Changing json format again --- geoparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geoparser.py b/geoparser.py index c4d4915..5dbfbd6 100755 --- a/geoparser.py +++ b/geoparser.py @@ -23,12 +23,12 @@ def logparse(LOGPATH, INFLUXHOST, INFLUXPORT, INFLUXDBDB, INFLUXUSER, INFLUXUSER IPS = {} GEOHASH = {} COUNT = {} - METRICS = [] with open(LOGPATH, "r") as FILE: STR_RESULTS = os.stat(LOGPATH) ST_SIZE = STR_RESULTS[6] FILE.seek(ST_SIZE) while 1: + METRICS = [] WHERE = FILE.tell() LINE = FILE.readline() if not LINE: