logoalt Hacker News

MobiusHorizonslast Saturday at 7:55 PM3 repliesview on HN

What you are proposing sounds like a nightmare to debug. The high level perspective of the operation is of course valuable for determining if an investigation is necessary, but the low level perspective in the library code is almost always where the relevant details are hiding. Not logging these details means you are in the dark about anything your abstractions are hiding from higher level code (which is usually a lot)


Replies

cwillulast Saturday at 9:27 PM

Those details don't belong in the error log level, that's what info or trace is for.

show 2 replies
Toolast Saturday at 8:57 PM

Simple: include those relevant details in the exceptions instead of hiding them.

show 4 replies
TZubirilast Saturday at 8:33 PM

You can log your IO and as long as your functions are idempotent that should be enough info to replicate.

show 1 reply