Part of lp.services.webapp.errorlog View In Hierarchy
Method | __init__ | Undocumented |
Method | configure | Configure the utility using the named section from the config. |
Method | oops_prefix | Get the current effective oops prefix. |
Method | raising | See IErrorReportingUtility.raising() |
Method | oopsMessage | Add an oops message to be included in oopses from this context. |
Method | addOopsMessage | Add a message to the current oops accumulator. |
Method | _filter_bad_urls_by_referer | Filter if the report was generated because of a bad offsite url. |
Method | _filter_deliberate_db_outages | Undocumented |
Method | _attach_messages | merges self._oops_messages into the report req_vars variable. |
The 'error_reports' section is used if section_name is None.
The message will be removed when the scope is exited, so this is useful for messages that are relevant only to errors raised during part of the request.
Warning: This is not threadsafe at present, because there is only one ErrorReportingUtility per process.
Parameters | message | Unicode message. |