Removing old logging

This commit is contained in:
samwiseg0 2018-12-04 19:16:00 -05:00
parent 50c1be7e41
commit aa04ea84b7
6 changed files with 19 additions and 20 deletions

View file

@ -1,5 +1,8 @@
import logging
from influxdb import InfluxDBClient
logger = logging.getLogger('Varken')
class DBManager(object):
def __init__(self, server):
@ -13,4 +16,5 @@ class DBManager(object):
self.influx.create_retention_policy('varken 30d/1h', '30d', '1', 'varken', False, '1h')
def write_points(self, data):
self.influx.write_points(data)
logger.debug('Writing Data to InfluxDB {}'.format(data))
self.influx.write_points(data)