Zope 2.6 traceback problems
Hello, I recently moved a number of production servers from Zope 2.5.1 to 2.6.2, I'm trying to figure out why the tracebacks are so different in the 2.6 tree. I do know that error messages and tracebacks are now available in the /error_log object (That took me a bit of mailing list archive digging :), but I'm referring to the actual content of the tracebacks. In 2.5.1 my tracebacks would tell me the actual zope object and most of the time the line number where zope was encountering a problem. For example, if I have a dtml-document which runs a number of SQLMethods and a number of PythonScripts and one of those SQLMethods had an error, 2.5.1 would tell me the id of the exact zope object (eg. SQLqueryblah) and line number where I had a problem, but zope 2.6.2's tracebacks will only tell me that it encountered an error somewhere in the zope plumbing, like the database adapter. Then I get to go through each and every SQLMethod that is called on that page and determine which one has the error. As you might imagine, this makes debugging a problem a much longer process and a very frusterating one. If someone is familliar with this problem and can suggest a fix for it, that would be very much appreciated. Even if someone just knows the reason for this change, I would be much obliged. Thank you very much for your time, -- Jesse D'Aguanno JJRaM, Inc. 10217 Fair Oaks Blvd., Suite B Fair Oaks, CA 95628 http://www.jjram.com
Jesse D'Aguanno wrote at 2003-12-17 15:36 -0800:
I recently moved a number of production servers from Zope 2.5.1 to 2.6.2, I'm trying to figure out why the tracebacks are so different in the 2.6 tree. I do know that error messages and tracebacks are now available in the /error_log object (That took me a bit of mailing list archive digging :), but I'm referring to the actual content of the tracebacks. In 2.5.1 my tracebacks would tell me the actual zope object and most of the time the line number where zope was encountering a problem.
The pre-Zope 2.6 tracebacks have been optimized for DTML but were bad for PageTemplates. As PageTemplates became mainstream, for Zope 2.6, Shane overhauled the traceback generation and optimized them for PageTemplates. Unfortunately, the overhaul lost the DTML optimizations. I have a small patch such that the modern traceback at least tells the name of a DTML object. Almost surely, it would not be difficult to extend the traceback generation to provide the former additional information -- but we rarely work with DTML nowadays. Therefore, the need was not pressing enough for me to investigate... -- Dieter
participants (2)
-
Dieter Maurer -
Jesse D'Aguanno