diff --git a/varken/dbmanager.py b/varken/dbmanager.py index 06e6f18c..04eb51e9 100644 --- a/varken/dbmanager.py +++ b/varken/dbmanager.py @@ -8,13 +8,13 @@ class DBManager(object): def __init__(self, server): self.server = server + self.logger = getLogger() if self.server.url == "influxdb.domain.tld": self.logger.critical("You have not configured your varken.ini. Please read Wiki page for configuration") exit() self.influx = InfluxDBClient(host=self.server.url, port=self.server.port, username=self.server.username, password=self.server.password, ssl=self.server.ssl, database='varken', verify_ssl=self.server.verify_ssl) - self.logger = getLogger() try: version = self.influx.request('ping', expected_response_code=204).headers['X-Influxdb-Version'] self.logger.info('Influxdb version: %s', version)