Hi
When an error is encountered on a page the user is presented with
"""
We're sorry, but there seems to be an error…
The error has been logged as entry number 1239780349.450.939265417763.
"""
This number does not help at all if you run multiple zeo clients since
the error number is tied to the instance. So the next time you try to
navigate to the error_log link you probably will not find the error
since you will be served by another instance.
My quick solution is to modify standard_error_message.py and at the
bottom do
"""
if error_log_id:
context.plone_log("Error reference number: %s (traceback above)" %
error_log_id)
"""
That way the number gets written to the event log on the filesystem and
I can grep for it. It is not perfect but it is good enough for me.
Is there perhaps a better way to handle this? I'm thinking of an entry
point before standard_error_message.
Hedley
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers