diff --git a/credentials/settings/production.py b/credentials/settings/production.py index 43c3e92cd..8b3ad8828 100644 --- a/credentials/settings/production.py +++ b/credentials/settings/production.py @@ -12,9 +12,6 @@ ALLOWED_HOSTS = ["*"] -LOGGING_FORMAT_STRING = "" -LOGGING = get_logger_config(format_string=LOGGING_FORMAT_STRING) - # Keep track of the names of settings that represent dicts. Instead of overriding the values in base.py, # the values read from disk should UPDATE the pre-configured dicts. DICT_UPDATE_KEYS = ("JWT_AUTH",) @@ -50,6 +47,9 @@ # Load the files storage backend settings for django storages vars().update(FILE_STORAGE_BACKEND) +# make sure this happens after the configuration file overrides so format string can be overridden +LOGGING = get_logger_config(format_string=LOGGING_FORMAT_STRING) + if "EXTRA_APPS" in locals(): INSTALLED_APPS += EXTRA_APPS