Logging the response object
by
hedley
—
posted on
Nov 06, 2007 03:59 PM
—
last modified
Nov 06, 2007 03:59 PM
Logging the response object to the event logger may have strange side effect in Python Scripts.
I have a Python Script invoked by a kss rule. One line in the script says
context.plone_log(context.REQUEST.RESPONSE)
This causes the script to silently break after a while. The breakage is probably due to some encoding problem; the silence is probably due to kss suppressing errors in some way.
Bottom line: don't log the response!






