Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Andrew Scott / Andrew Scott (Andrew Scott)
Created: 04/29/2014
Components: Logging
Versions: 10.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: Final /
Priority/Frequency: Normal / Most users will encounter
Locale/System: English / Win All
Vote Count: 2
Problem Description:
This has actually surprised me that it has taken me this long to wake up to this behavior...
Anyway the current problem is that I am having a major read / write lock and can't find where it is occurring, the problem is that there is absolutely nothing in the ColdFusion logs at all. When realizing that this is because the error is being captured, the best test case I can give for this is the following code.
try {
// code block to execute.
} catch (any e) {
//... skip errors as we don't need to display this to the user.
}
Now one would first be inclined to just put a log in the catch area, however it is not that simple. Over the years I have seen many examples of where an error is being thrown to be caught later, in some cases it is a way to just cleanly exit and not let the user know.
But I have seen many examples of the above code, where nothing gets logged for serious errors.
Which brings me to my current situation, as there is no log of the error except some basic information. We know have to wait until it occurs again, this is painful because it makes it hard to look for something that can be easily lost in the noise of the workings of the application..
My proposal is that no matter what, once a try block has been caught ColdFusion logs this information in its logs. I can't stress how important that small change can make our lives so much easier.
Steps to Reproduce:
Actual Result:
Expected Result:
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3752424
External Customer Info:
External Company:
External Customer Name: ascott67
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: