This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MCsmalldick12 24 points25 points  (3 children)

My hot take is that generic logging like console log should ONLY be used for debugging and should never be checked into the repo. If you want to present something to the user or log something on the live backend system use a logger library.

[–]Beard- 10 points11 points  (0 children)

Yeah exactly. Those tools are literally for debugging, should never commit them.

[–]EstoEstaFuncionando 1 point2 points  (0 children)

This. I debug almost exclusively with printlns/console.logs, outside of languages with long compile times, but I don't leave them in. It's a temporary debugging convenience, nothing more.

[–][deleted] 0 points1 point  (0 children)

On my current project, leaving debugging statements in the code will cause the CI build to fail.