diff --git a/credentials/settings/base.py b/credentials/settings/base.py index dda8f1370..6fdbbde9e 100644 --- a/credentials/settings/base.py +++ b/credentials/settings/base.py @@ -406,7 +406,7 @@ ACE_CHANNEL_SAILTHRU_TEMPLATE_NAME = "" # unused, but required to be set or we see an exception # Set up logging for development use (logging to stdout) -LOGGING_FORMAT_STRING = "" +LOGGING_FORMAT_STRING = os.environ.get("LOGGING_FORMAT_STRING", "") LOGGING = get_logger_config(debug=DEBUG, dev_env=True, local_loglevel="DEBUG", format_string=LOGGING_FORMAT_STRING) # DRF Settings diff --git a/credentials/settings/devstack.py b/credentials/settings/devstack.py index ae4026a81..a36b5939e 100644 --- a/credentials/settings/devstack.py +++ b/credentials/settings/devstack.py @@ -8,7 +8,7 @@ ALLOWED_HOSTS = ["*"] -LOGGING_FORMAT_STRING = "" +LOGGING_FORMAT_STRING = os.environ.get("LOGGING_FORMAT_STRING", "") LOGGING = get_logger_config(debug=True, dev_env=True, local_loglevel="DEBUG", format_string=LOGGING_FORMAT_STRING) del LOGGING["handlers"]["local"] diff --git a/credentials/settings/local.py b/credentials/settings/local.py index 9e41dcdd5..5df12a5fb 100644 --- a/credentials/settings/local.py +++ b/credentials/settings/local.py @@ -56,7 +56,7 @@ USER_CACHE_TTL = 60 # LOGGING -LOGGING_FORMAT_STRING = "" +LOGGING_FORMAT_STRING = os.environ.get("LOGGING_FORMAT_STRING", "") LOGGING = get_logger_config(debug=True, dev_env=True, local_loglevel="DEBUG", format_string=LOGGING_FORMAT_STRING) ##################################################################### diff --git a/credentials/settings/test.py b/credentials/settings/test.py index d01b8754a..71b55c701 100644 --- a/credentials/settings/test.py +++ b/credentials/settings/test.py @@ -10,7 +10,7 @@ "credentials.apps.edx_credentials_extensions", ] -LOGGING_FORMAT_STRING = "" +LOGGING_FORMAT_STRING = os.environ.get("LOGGING_FORMAT_STRING", "") LOGGING = get_logger_config(debug=False, dev_env=True, local_loglevel="DEBUG", format_string=LOGGING_FORMAT_STRING) ALLOWED_HOSTS = ["*"]