Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

On the google app engine, how do I change the default logging level of the dev_appserver.py?

Dev_appserver.py (the local development server for Python google app engine) spews tons of useless INFO messages. I would like to up this to WARN or ERROR. How can I do that?

I've tried the following, but it has no effect...

logger = logging.getLogger()
logger.setLevel(logging.WARN)

Any ideas?

like image 965
willem Avatar asked Jul 18 '10 13:07

willem


1 Answers

Currently, from the command line, you can only lower the logging level to DEBUG by the '-d' command line option.


If you're not afraid of editing the scripts, look for

DEFAULT_ARGS = {
  ...
  ARG_LOG_LEVEL: logging.INFO,

in C:\Program Files\Google\google_appengine\google\appengine\tools\dev_appserver_main.py

like image 134
Refael Ackermann Avatar answered Sep 26 '22 01:09

Refael Ackermann