aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)