My python code is currently printing the following line to the logs at the conclusion of every REST API call (high-level info on the response it is sending back):
111.111.111.111 - - [15/Aug/2017:12:03:15 +0000] "POST /some_endpoint
HTTP/1.1" 202 72 "-" "python-requests/2.2.1 CPython/3.4.3 Linux/3.13.0-83-generic"
Through other searches I've seen the following suggestions on how to get rid of it:
1) logging.getLogger('werkzeug').setLevel(logging.ERROR)
2) logging.getLogger('werkzeug').disabled = True
3) Same as above, but requests
instead of werkzeug
These have no effect. Another solution offered up was to use a completely different stream for logging but that's not going to be an option for my needs.
This is obviously getting logged through a separate mechanism than the rest of my logs since the format is different, but I can't seem to pinpoint the culprit.