3 ms·
Just print out all necessary information, in case of exception, and suggest a potential solution to the problem.
by goohle 5y ago
Just print out all necessary information, in case of exception, and suggest a potential solution to the problem.
- slaymaker1907 5y agoThis does not work in practice a lot of the time. What if the problem was actually due to some other thread and said other thread didn't crash? If you only log after success/failure, you would have absolutely no idea why the program crashed. Oftentimes if the actual error were anticipated enough for good reporting, said error would not exist in the first place.