Skip to content

Commit

Permalink
refactor: move default to base settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zawan-ila committed Dec 6, 2024
1 parent 09e133a commit d4ce626
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions course_discovery/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@
# Set up logging for development use (logging to stdout)
level = 'DEBUG' if DEBUG else 'INFO'
hostname = platform.node().split(".")[0]
LOGGING_FORMAT_STRING = ''

# Use a different address for Mac OS X
syslog_address = '/var/run/syslog' if platform.system().lower() == 'darwin' else '/dev/log'
Expand Down
4 changes: 2 additions & 2 deletions course_discovery/settings/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def get_docker_logger_config():
'disable_existing_loggers': False,
'formatters': {
'standard': {
'format': LOGGING_FORMAT_STRING or '%(asctime)s %(levelname)s %(process)d '
'[%(name)s] %(filename)s:%(lineno)d - %(message)s'
'format': LOGGING_FORMAT_STRING or '%(asctime)s %(levelname)s %(process)d '
'[%(name)s] %(filename)s:%(lineno)d - %(message)s'
},
'syslog_format': {'format': syslog_format},
'raw': {'format': '%(message)s'},
Expand Down
2 changes: 0 additions & 2 deletions course_discovery/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
# the values read from disk should UPDATE the pre-configured dicts.
DICT_UPDATE_KEYS = ('JWT_AUTH',)

LOGGING_FORMAT_STRING = ''

# This may be overridden by the YAML in DISCOVERY_CFG, but it should be here as a default.
MEDIA_STORAGE_BACKEND = {}

Expand Down

0 comments on commit d4ce626

Please sign in to comment.