Commit caf5719a by Muzaffar yousaf

Merge pull request #45 from edx/mzfr/logger

setting logging level to warning for ES.trace
parents e3547044 0d8df82a
...@@ -24,7 +24,6 @@ def get_logger_config(log_dir='/var/tmp', ...@@ -24,7 +24,6 @@ def get_logger_config(log_dir='/var/tmp',
"edx_filename" is ignored unless dev_env is set to true since otherwise "edx_filename" is ignored unless dev_env is set to true since otherwise
logging is handled by rsyslogd. logging is handled by rsyslogd.
""" """
# Revert to INFO if an invalid string is passed in # Revert to INFO if an invalid string is passed in
if local_loglevel not in ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']: if local_loglevel not in ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']:
local_loglevel = 'INFO' local_loglevel = 'INFO'
...@@ -69,7 +68,7 @@ def get_logger_config(log_dir='/var/tmp', ...@@ -69,7 +68,7 @@ def get_logger_config(log_dir='/var/tmp',
}, },
"elasticsearch.trace": { "elasticsearch.trace": {
'handlers': handlers, 'handlers': handlers,
'level': 'DEBUG', 'level': 'WARNING',
'propagate': False, 'propagate': False,
}, },
'': { '': {
......
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