google-code-export / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

logging information is not showing up in app engine admin console #218

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. in any python code, use logging.debug/info to add logging information
2. in setting.py, set debug=False
3. when deploy in app-engine, the debug/info information is not shown

What is the expected output? What do you see instead?

I expect to see the debug/info in google admin console. see 
http://code.google.com/appengine/articles/logging.html

What version of the product are you using? On what operating system?

1.1 beta

Please provide any additional information below.

I would like to turn Django DEBUG OFF for end-user, but I still want to see
the debug/info from Google Appengine admin console. Currently this is
impossible, I think Django DEBUG shouldn't overwrite logging.Level. 

Original issue reported on code.google.com by xiaoming...@gmail.com on 14 Sep 2009 at 3:13

GoogleCodeExporter commented 9 years ago
It's really an app engine issue; the app engine resets a bunch of logging 
parameters
on each request, including setting the logging level to a default, so the only 
time
you can configure logging manually is right within main(). The patch uses this
opportunity to enable all messages if settings.DEBUG is enabled, and disable 
only
debug-level messages otherwise.

It'd be nice to have a hook there, or a configuration option to specify a 
settings
file, but even with that, you still won't be able to separate Django messages 
from
the google ones.

The problem is google reports to the root of the logging hierarchy, and
app-engine-patch copies that. Since I've run into this wall before, I made an 
issue
on google. Star it if you want it fixed.

http://code.google.com/p/googleappengine/issues/detail?id=2147

Original comment by NagelBa...@gmail.com on 21 Sep 2009 at 12:33