views:

181

answers:

1

I'm just getting started on building a Python app for Google App Engine. In the localhost environment (on a Mac)

I'm trying to send debug info to the GoogleAppEngineLauncher Log Console via logging.debug(), but it isn't showing up. However, anything sent through, say, logging.info() or logging.error() does show up. I've tried a logging.basicConfig(level=logging.DEBUG) before the logging.debug(), but to no avail.

What am I missing?

+3  A: 

I believe the only way to get debug messages to show up in the dev server is to pass --debug. dev_appserver itself uses this same logger, though, so be prepared to see debug messages from the server as well as your own code.

Wooble
Hmmph, serves me right for never running dev_appserver from the command line and checking out its flags.Do you know anywhere this is documented, other than by running `dev_appserver.py --help`?
brainjam
+1 for the answer, btw.
brainjam
Nevermind the documentation question in the above comment. Found it at http://code.google.com/appengine/docs/python/tools/devserver.html.
brainjam