NZRS / wavetrace

Radio propagation modelling
GNU Affero General Public License v3.0
61 stars 22 forks source link

Code review ideas: logging instead of print statements #13

Open ghost opened 8 years ago

ghost commented 8 years ago

wavetrace is great for batch processing, however it's tough to import into another project and call the methods, returning the result you need.

There are a few things that could make this easier - without making the batch processing harder, so i'll note these ideas one-per-issue; This one is logging.

Logging instead of print statements would make it much easier for a consuming project to handle the output. Logging also makes it easy to see where and when (even what line no.) a logging call is being made from, plus you can crank up the logging level with one line change, and drop it back after you find and fix the problem.

jamiesgithub commented 8 years ago

I agree. The original use case was straight batch processing.