andrewfraley / arris_cable_modem_stats

Retrieves stats from Arris cable modems and sends to InfluxDB
50 stars 33 forks source link

Enhancement: Change debug to an option in the config file #12

Closed bdf0506 closed 3 years ago

bdf0506 commented 3 years ago

Rather than have Debug be a setting when you run the program, this should be moved (or added) to the configuration file. When running this in a docker container, it's rather difficult to temporarily enable debug. I've had to actually have a separate docker container that has the Dockerfile modified for the run command to be --debug. If it was in the config file, you could simply share the config file with your docker container, modify the variable in config.ini, restart the docker container and then you have debug running.

andrewfraley commented 3 years ago

support for this has been added on the refresh_token branch

andrewfraley commented 3 years ago

This is now supported via setting arris_stats_debug = True in the config file or ENV variable