On 10/23/08 1:34 PM, Marzia Niccolai wrote:
> Hi Brian,
> 
> To view in the web interface, you can set the limit of logs records to
> be displayed by appending the &limit argument on the URL, so the
> following should work:
> 
> http://appengine.google.com/logs?&app_id=xxx&version_id=1.150&limit=10
> <http://appengine.google.com/logs?&app_id=brizzled&version_id=1.150&limit=10>
> 
> Also, instead of using sys.stderr you should use the standard python
> logging module.

I'm sharing this, so others might benefit.

Original problem: Retrieving logs via the dashboard resulted in a
short error message indicating that some internal retrieval exceeded 1Mb.

Cause: The problem appears to have been a stray "print" to sys.stderr that
I originally put into the code to help debug something while running with
dev_appserver; I neglected to remove that debug statement when I uploaded
the application. That print statement, while rarely executed, produced a
*lot* of output when it *was* executed. Yesterday, I used the application
in a way that triggered the print statement repeatedly It produced a lot of
log output; the volume of log output was clearly pushing an internal GAE
retrieval over a 1Mb limit, resulting in the error.

Limiting the number of logs via the "limit" parameter, as Marzia noted
above, allowed me to see some of the log output. Once I saw the output, the
problem was immediately apparent.

My only suggestion to the GAE team: In cases like this, it would help if
the log viewer displayed a more useful error message.

Thanks, Marzia.

-Brian

Brian Clapper, http://www.clapper.org/bmc/
Sex is the mathematics urge sublimated.
        -- M. C. Reed

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