The Daily WTF
Follow
CodeSOD: Classic WTF: Fork and Log
Remy recounts an incident involving a VXML Platform performance issue encountered by Adam C. The system was failing under minimal load, and the project was already behind schedule. Adam, unfamiliar with VXML, began by examining application logs for clues. He repeatedly found an error message stating "Exception encountered writing error log." This cryptic message puzzled Adam, as it reported an error in logging itself. Delving into the source code, he discovered a deeply flawed logging implementation. The code used an external command to log errors, rather than leveraging existing logging frameworks like log4j or even a simple System.out.println. Adam found this approach inefficient and poorly designed. Although this specific code was not the root cause of the performance issues, it was quickly removed. The anecdote highlights a common type of technical debt found in legacy systems.