add logging to influxdb

This commit is contained in:
genofire 2020-06-09 20:22:30 +02:00
parent 6029cdc831
commit 710e139403
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ if __name__ == '__main__':
# load config # load config
config = Config() config = Config()
if config.get('debug', default=False):
logging.getLogger().setLevel(logging.DEBUG)
# credentials and parameters # credentials and parameters
url = config.get('url', default='http://localhost:5280/api') url = config.get('url', default='http://localhost:5280/api')
login = config.get('login', default=None) login = config.get('login', default=None)