Commit 039afc25 by Kevin Falcone Committed by GitHub

Merge pull request #15534 from edx/jibsheet/quiet-requests-logging

Limit requests urllib3 logging to quiet log spam
parents 267968b0 ee5b8db5
...@@ -141,6 +141,8 @@ def get_logger_config(log_dir, ...@@ -141,6 +141,8 @@ def get_logger_config(log_dir,
# for production environments we will only # for production environments we will only
# log INFO and up # log INFO and up
logger_config['loggers']['']['level'] = 'INFO' logger_config['loggers']['']['level'] = 'INFO'
# requests is so loud at INFO (logs every connection) that we force it to warn in production environments
logger_config['loggers']['requests.packages.urllib3'] = {'level': 'WARN'}
logger_config['handlers'].update({ logger_config['handlers'].update({
'local': { 'local': {
'level': local_loglevel, 'level': local_loglevel,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment