Phuks-co / throat

Open Source link aggregator and discussion platform powering Phuks
https://phuks.co
MIT License
73 stars 32 forks source link

Make logging configurable in config.yaml #133

Closed happy-river closed 4 years ago

happy-river commented 4 years ago

Allow administrators to include a Python logging configuration dictionary (as described in the Python docs) in config.yaml. If the section isn't present, no logging configuration will be done unless config.app.development is set, in which case debug logging to the console will be set up, as happened previously.

I included an example in example.config.yaml to get people started that works the same as the default development configuration. First thing I'm adding to my logging config is:

  peewee:
    level: WARNING