|
@@ -45,11 +45,12 @@ if args.no_detach:
|
|
|
|
|
|
logger.info('Starting up')
|
|
|
|
|
|
+storage = Storage()
|
|
|
+
|
|
|
a = AlfredParser()
|
|
|
b = BatmanParser()
|
|
|
d = DashingClient(args.dashing_url, args.dashing_token) if not args.dashing_url is None else None
|
|
|
g = GraphitePush(args.graphite_host, args.graphite_port) if not args.graphite_host is None else None
|
|
|
-data = { }
|
|
|
|
|
|
if args.no_send:
|
|
|
if not g is None: g.dont_send = True
|
|
@@ -94,8 +95,8 @@ while True:
|
|
|
d.push(newdata)
|
|
|
|
|
|
logger.debug('Step 3/3: Merging current data ...')
|
|
|
- data = dict_merge(data, newdata)
|
|
|
- logger.info('I have data for ' + str(len(data)) + ' nodes.')
|
|
|
+ storage.data = dict_merge(storage.data, newdata)
|
|
|
+ logger.info('I have data for ' + str(len(storage.data)) + ' nodes.')
|
|
|
except Exception as err:
|
|
|
logger.error(str(err))
|
|
|
|