Hi Elias,
Judging by your stacktrace, it looks like you have a broken runtime -
probably due to a timeout error during imports. Try deploying a new app
version and trying again.

Also, it's not clear from your message how you're trying to use it - have
you followed the instructions in the docstring?

-Nick Johnson

On Sat, Sep 26, 2009 at 4:09 AM, Elias Torres <[email protected]> wrote:

>
> 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)
>
> >
>


-- 
Nick Johnson, Developer Programs Engineer, App Engine
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

--~--~---------~--~----~------------~-------~--~----~
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