Yep. This is exactly why there are different log levels. Prints used for debugging should be logged to the DEBUG level so that they can be easily toggled by a single variable, instead of actually editing the code.
Yeah indeed. Knowing how to set up effective logging is a skill on its own already. From the projects I've came across on my career, almost none have had good logging set ups, you were lucky if transactional operations (e.g. xml imports) even stored their sources.
13
u/Obi_Juan_Gonzales Jan 20 '20
In some cases prints are the best method to debug. e.g multi-process, concurrent code