svalouch / rctmon

Pulls data from RCT Power GmbH devices for use with monitoring systems.
https://rctmon.readthedocs.io
GNU General Public License v3.0
17 stars 8 forks source link

minimal configuration not working #28

Open hackentrick opened 1 year ago

hackentrick commented 1 year ago

When I first tried rctmon I used the minimal configuration from README. Unfortunately it didn't work because apparently the following parameter was missing.

logging:
  version: 1

I know I could have solved this myself via pull request, but unfortunately I lack git experience.

svalouch commented 1 year ago

That should only be required if the logging: toplevel entry was present in the config file. The CLI checks if it is there (here) and if that's the case passes it to Python's own logging.config.dictConfig() and hopes for the best. Without that key present, the default is used, which includes the version.