UofSSpaceTeam / rover-processes

Miscellaneous software for the rover.
0 stars 2 forks source link

Logging #27

Closed ottopasuuna closed 6 years ago

ottopasuuna commented 6 years ago

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.