KaylaCrush / advocacy-maps

The good governance project (GGP) is a non-partisan democracy reform group.
https://mapletestimony.org
MIT License
0 stars 1 forks source link

coherent debug system #42

Closed KaylaCrush closed 1 year ago

KaylaCrush commented 1 year ago

there's probably any number of tools for this already, but right now I just have a bunch of if DEBUG: print() statements scattered everywhere and it would be nice to have them call a separate method, maybe with optional levels of importance, so I could just show errors vs showing debug info

KaylaCrush commented 1 year ago

implemented the python logging library, which allows me to classify messages by severity and also possibly save debug info to a log if I want to later