Skip to content

Commit 0a52fe6

Browse files
authored
chore: fixing the stubs in the settings file for the log formatter (#2656)
this is an attempt to fix the overrides for the log formatter by putting stubs in the settings files.
1 parent 311f38e commit 0a52fe6

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

credentials/settings/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,8 @@
406406
ACE_CHANNEL_SAILTHRU_TEMPLATE_NAME = "" # unused, but required to be set or we see an exception
407407

408408
# Set up logging for development use (logging to stdout)
409-
LOGGING = get_logger_config(debug=DEBUG, dev_env=True, local_loglevel="DEBUG")
409+
LOGGING_FORMAT_STRING = ""
410+
LOGGING = get_logger_config(debug=DEBUG, dev_env=True, local_loglevel="DEBUG", format_string=LOGGING_FORMAT_STRING)
410411

411412
# DRF Settings
412413
REST_FRAMEWORK = {

credentials/settings/devstack.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
ALLOWED_HOSTS = ["*"]
1010

11-
LOGGING = get_logger_config(debug=True, dev_env=True, local_loglevel="DEBUG")
11+
LOGGING_FORMAT_STRING = ""
12+
LOGGING = get_logger_config(debug=True, dev_env=True, local_loglevel="DEBUG", format_string=LOGGING_FORMAT_STRING)
1213
del LOGGING["handlers"]["local"]
1314

1415
SECRET_KEY = os.environ.get("SECRET_KEY", "change-me")

credentials/settings/local.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
USER_CACHE_TTL = 60
5757

5858
# LOGGING
59-
LOGGING = get_logger_config(debug=True, dev_env=True, local_loglevel="DEBUG")
59+
LOGGING_FORMAT_STRING = ""
60+
LOGGING = get_logger_config(debug=True, dev_env=True, local_loglevel="DEBUG", format_string=LOGGING_FORMAT_STRING)
6061

6162
#####################################################################
6263
# Lastly, see if the developer has any local overrides.

credentials/settings/test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"credentials.apps.edx_credentials_extensions",
1111
]
1212

13-
LOGGING = get_logger_config(debug=False, dev_env=True, local_loglevel="DEBUG")
13+
LOGGING_FORMAT_STRING = ""
14+
LOGGING = get_logger_config(debug=False, dev_env=True, local_loglevel="DEBUG", format_string=LOGGING_FORMAT_STRING)
1415
ALLOWED_HOSTS = ["*"]
1516

1617
DATABASES = {

0 commit comments

Comments
 (0)