Removing old logging
This commit is contained in:
parent
50c1be7e41
commit
aa04ea84b7
6 changed files with 19 additions and 20 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue