Skip to content

Commit

Permalink
Formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
terjekv committed Aug 24, 2023
1 parent ae97df5 commit 1089d85
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mregsite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@

LOG_FILE_SIZE = os.environ.get("MREG_LOG_FILE_SIZE", 10 * 1024 * 1024)
LOG_FILE_COUNT = os.environ.get("MREG_LOG_FILE_COUNT", 5)
LOG_FILE_NAME = os.path.join(BASE_DIR, os.environ.get("MREG_LOG_FILE_NAME", "logs/app.log"))
LOG_FILE_NAME = os.path.join(
BASE_DIR, os.environ.get("MREG_LOG_FILE_NAME", "logs/app.log")
)

# If the log directory doesn't exist, create it.
log_dir = os.path.dirname(LOG_FILE_NAME)
Expand All @@ -61,7 +63,7 @@
if os.path.exists(LOG_FILE_NAME) and not os.access(LOG_FILE_NAME, os.W_OK):
print(f"Log file {LOG_FILE_NAME} is not writable")
sys.exit(1)

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True if "CI" in os.environ else False

Expand Down

0 comments on commit 1089d85

Please sign in to comment.