From 710e139403c67fcf889857483276b1e5f6e18c87 Mon Sep 17 00:00:00 2001 From: genofire Date: Tue, 9 Jun 2020 20:22:30 +0200 Subject: [PATCH] add logging to influxdb --- influx.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/influx.py b/influx.py index d0569d4..979176a 100644 --- a/influx.py +++ b/influx.py @@ -79,6 +79,9 @@ if __name__ == '__main__': # load config config = Config() + if config.get('debug', default=False): + logging.getLogger().setLevel(logging.DEBUG) + # credentials and parameters url = config.get('url', default='http://localhost:5280/api') login = config.get('login', default=None)