Anybody has a clear example of how to use the ereporter?

I've added a Django middleware class to process_exception and I do get
called. Then I call logging.exception() with several different things
(all tuples) and nothing yet.

Traceback (most recent call last):
  File "/Users/elias/Desktop/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/ereporter/ereporter.py", line
216, in emit
    signature = self.__GetSignature(record.exc_info)
  File "/Users/elias/Desktop/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/ereporter/ereporter.py", line
163, in __GetSignature
    frames = traceback.extract_tb(trace)
AttributeError: 'NoneType' object has no attribute 'extract_tb'
Traceback (most recent call last):
  File "/Users/elias/Desktop/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/ereporter/ereporter.py", line
216, in emit
    signature = self.__GetSignature(record.exc_info)
  File "/Users/elias/Desktop/GoogleAppEngineLauncher.app/Contents/
Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/ereporter/ereporter.py", line
163, in __GetSignature
    frames = traceback.extract_tb(trace)
AttributeError: 'NoneType' object has no attribute 'extract_tb'

BTW, the old signal method doesn't seem to work:

  def log_exception(*args, **kwds):
    """Django signal handler to log an exception."""
    cls, err = sys.exc_info()[:2]
    logging.error('Exception in request: %s: %s', cls.__name__, err)

  # Log all exceptions detected by Django.
  django.core.signals.got_request_exception.connect(
      log_exception)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to