aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgenofire <geno+dev@fireorbit.de>2020-06-09 20:22:30 +0200
committergenofire <geno+dev@fireorbit.de>2020-06-09 20:22:30 +0200
commit710e139403c67fcf889857483276b1e5f6e18c87 (patch)
tree9d0f6f08be1b525dbc7e929968859f2d271fe67b
parent6029cdc8319ccf374d51538cc43d55d9ee39d044 (diff)
add logging to influxdb
-rw-r--r--influx.py3
1 files changed, 3 insertions, 0 deletions
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)