News for hackers. Stuff that matters.
Re:My Logging Best Practices (2020) by pugworthy on Tuesday October 05, 2021 @03:45PM (#28764629)
That assumes that the all fail cases will create an exception and properly pass on that a failure occurred, with enough information so that the caller can decide what to do next.
Re:My Logging Best Practices (2020) by SideburnsOfDoom on Tuesday October 05, 2021 @04:13PM (#28764963)
The assumption upfront is that you don't reach the "log after" point. IMHO, given that, not having an exception will be rare, and probably involve code that looks "off" and fixing that is the first task. YMMV though, depending on language