fixed clean_check of server_ids, fixed under-indented radarr get_movie,

and added __repr__ for cleaner logging
This commit is contained in:
Nicholas St. Germain 2018-12-04 21:17:33 -06:00
parent 87fea6db06
commit 18a5fdacba
8 changed files with 50 additions and 17 deletions

View file

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