add logging to influxdb
This commit is contained in:
parent
6029cdc831
commit
710e139403
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue