how to change logging level for request_log?

52 views
Skip to first unread message

Tawn Kramer

unread,
Aug 11, 2016, 4:43:10 PM8/11/16
to Google App Engine


I've looked around on StackExchange and it seemed like some people were having success filtering their AppEngine logs. But it's not working for me.

In my main app I tried:

import logging

logging.getLogger("requests").setLevel(logging.WARNING)
logging.getLogger("request_log").setLevel(logging.WARNING)
logging.getLogger("module").setLevel(logging.WARNING)
logging.getLogger("urllib3").setLevel(logging.WARNING)

I'm still getting each and every GET request from my site:


Nick (Cloud Platform Support)

unread,
Aug 12, 2016, 2:50:44 PM8/12/16
to Google App Engine
Hey Mossman,

I'm not sure what you're trying to do here - could you link the sources from Stack Overflow? The python code supplied sets the log level of various loggers (of which I'm not sure which ones are actually used/pre-existing in production), while the console Logs Viewer will show logs from all levels, unless the UI of the Logs Viewer is used to apply filters. 

Regards,

Nick
Cloud Platform Community Platform
Reply all
Reply to author
Forward
0 new messages