aboutsummaryrefslogtreecommitdiffstats
path: root/backend/constants.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-03-14 10:45:36 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-03-15 02:16:24 +0300
commita423419eca285d0b23ad3f31956297851a608d22 (patch)
treeda008db807af16fc58c1910fad6367d4e91aef66 /backend/constants.py
parentUse .gitattributes to normalise line endings (diff)
Adds Logging Support
Adds formatters and handlers for logging. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'backend/constants.py')
-rw-r--r--backend/constants.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/constants.py b/backend/constants.py
index d90fd9a..50c09ea 100644
--- a/backend/constants.py
+++ b/backend/constants.py
@@ -15,6 +15,8 @@ SNEKBOX_URL = os.getenv("SNEKBOX_URL", "http://snekbox.default.svc.cluster.local
PRODUCTION = os.getenv("PRODUCTION", "True").lower() != "false"
PRODUCTION_URL = "https://forms.pythondiscord.com"
+LOG_FILES = os.getenv("LOG_FILES", "False").lower() != "false"
+
OAUTH2_CLIENT_ID = os.getenv("OAUTH2_CLIENT_ID")
OAUTH2_CLIENT_SECRET = os.getenv("OAUTH2_CLIENT_SECRET")
OAUTH2_REDIRECT_URI = os.getenv(