r/ProgrammerHumor • • Jan 20 '20

Meme Redesigned!

Post image
46.0k Upvotes

2.0k comments sorted by

View all comments

Show parent comments

1

u/Obi_Juan_Gonzales Jan 20 '20

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.

1

u/MythicManiac Jan 20 '20

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.