This adds a long overdue setup for logging messages instead of using print statements. Any information that you want to be seen should be done via logging instead of print statements from now on.
All proceses have log = config.getLogger() right after importing config, and in your code just use log.info('<message>', log.debug('msg'), log.warning('msg')`, etc.
I was going to merge the config branch as a separate PR, but I'll just be lazy and use this to include those changes. There is now a config.py where all configuration such as network address should go.
This adds a long overdue setup for logging messages instead of using print statements. Any information that you want to be seen should be done via logging instead of print statements from now on.
All proceses have
log = config.getLogger()
right after importingconfig
, and in your code just uselog.info('<message>'
,log.debug('msg')
, log.warning('msg')`, etc.I was going to merge the
config
branch as a separate PR, but I'll just be lazy and use this to include those changes. There is now a config.py where all configuration such as network address should go.