Commit ca717c29 authored by Andreas Jung's avatar Andreas Jung

reverted checkin for new env var LOG_ZPUBLISHER_TRACEBACK because

Shanes traceback patches provide a much better functionality.
parent b1779aaf
...@@ -73,9 +73,6 @@ Zope Changes ...@@ -73,9 +73,6 @@ Zope Changes
- New implementation of ZODB object cache. - New implementation of ZODB object cache.
- new env. variable LOG_ZPUBLISHER_TRACEBACK
(see doc/ENVIRONMENT.txt)
Bugs: Bugs:
- Made repr of an HTTPRequest.record eval'able as a dict (Collector - Made repr of an HTTPRequest.record eval'able as a dict (Collector
......
...@@ -140,12 +140,6 @@ Debugging and Logging ...@@ -140,12 +140,6 @@ Debugging and Logging
Run Zope in debug mode if set. Same as -D options (z2.py) Run Zope in debug mode if set. Same as -D options (z2.py)
LOG_ZPUBLISHER_TRACEBACK
If set, Zope will log all ZPublisher traceback through
the stupid logger. (Default: unset)
Misc. Misc.
Z_REALM "your realm" Z_REALM "your realm"
......
...@@ -12,11 +12,10 @@ ...@@ -12,11 +12,10 @@
############################################################################## ##############################################################################
'''CGI Response Output formatter '''CGI Response Output formatter
$Id: HTTPResponse.py,v 1.58 2002/04/12 17:22:44 andreasjung Exp $''' $Id: HTTPResponse.py,v 1.59 2002/04/12 17:27:44 andreasjung Exp $'''
__version__='$Revision: 1.58 $'[11:-2] __version__='$Revision: 1.59 $'[11:-2]
import types, os, sys, re import types, os, sys, re
import zLOG
from string import translate, maketrans from string import translate, maketrans
from types import StringType, InstanceType, LongType, UnicodeType from types import StringType, InstanceType, LongType, UnicodeType
from BaseResponse import BaseResponse from BaseResponse import BaseResponse
...@@ -609,10 +608,6 @@ class HTTPResponse(BaseResponse): ...@@ -609,10 +608,6 @@ class HTTPResponse(BaseResponse):
(str(t), b + self._traceback(t,'(see above)', tb, 0)), (str(t), b + self._traceback(t,'(see above)', tb, 0)),
is_error=1) is_error=1)
del tb del tb
if os.environ.has_key('LOG_ZPUBLISHER_TRACEBACK'):
zLOG.LOG('zpublisher',zLOG.WARNING,'Traceback:',body)
return body return body
_wrote=None _wrote=None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment