diff options
author | genofire <geno+dev@fireorbit.de> | 2020-06-09 20:22:30 +0200 |
---|---|---|
committer | genofire <geno+dev@fireorbit.de> | 2020-06-09 20:22:30 +0200 |
commit | 710e139403c67fcf889857483276b1e5f6e18c87 (patch) | |
tree | 9d0f6f08be1b525dbc7e929968859f2d271fe67b | |
parent | 6029cdc8319ccf374d51538cc43d55d9ee39d044 (diff) |
add logging to influxdb
-rw-r--r-- | influx.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |