Make use of logging and better envionment variable naming
- Using the
logging
library instead of print statements - Temporarily using uvicorn's logging handler untill a proper one is made
- Changed the
DEBUG
environment variable to avoid confusion on whatDEBUG
actually is, instead now we use thelogging.debug
log level if needed - New
HOTRELOAD
environment variable controls if arel hotreloading is enabled instead of relying on theDEBUG
&ENVIRONMENT
environment variable