I’ve seen it too many times: developers don’t know how to use logging correctly. We end up with tons of logs, everything dumped in, debug left in production, and even API keys and secrets leaking out.
Why does this still happen?
Because we’ve slipped into LOP (Logging-Oriented Programming). Just throw in logs everywhere and hope: “we will see what happens here.” WHY WHY WHY!!!
The real reason? Most of the time, we are just tired and don’t know how to debug locally. Maybe it needs a 3rd-party integration, maybe we can’t prepare the right data, maybe something else.
I’m not asking you to “please use logs correctly.” If you need to debug your code, configure remote debugging or run it locally.
So, just:
🚨 Do NOT use LOP. Be a good Software Engineer! 🚨
Comments
Post a Comment