fixed clean_check of server_ids, fixed under-indented radarr get_movie,
and added __repr__ for cleaner logging
This commit is contained in:
parent
87fea6db06
commit
18a5fdacba
8 changed files with 50 additions and 17 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue