aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Mark <[email protected]>2022-06-06 17:31:09 -0700
committerGravatar Mark <[email protected]>2022-06-06 17:31:09 -0700
commit58b413165486475147f22060417519ea2235addb (patch)
treee787f5798baad42ca2f03e14f6f374a932bd0745
parentRemove env var support for NsJail args (diff)
Rename DEBUG env var to SNEKBOX_DEBUG
Use a more unique name to avoid accidentally using the value of a similar env var that was set for an unrelated reason.
-rw-r--r--README.md2
-rw-r--r--docker-compose.yml2
-rw-r--r--snekbox/__init__.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 43c9ca1..ca1aa5d 100644
--- a/README.md
+++ b/README.md
@@ -76,7 +76,7 @@ All environment variables have defaults and are therefore not required to be set
Name | Description
---- | -----------
-`DEBUG` | Enable debug logging if set to a non-empty value.
+`SNEKBOX_DEBUG` | Enable debug logging if set to a non-empty value.
`SNEKBOX_SENTRY_DSN` | [Data Source Name] for Sentry. Sentry is disabled if left unset.
## Third-party Packages
diff --git a/docker-compose.yml b/docker-compose.yml
index 07548cd..9d3ae71 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -13,7 +13,7 @@ services:
ipc: none
tty: true
environment:
- DEBUG: 1
+ SNEKBOX_DEBUG: 1
PYTHONDONTWRITEBYTECODE: 1
build:
context: .
diff --git a/snekbox/__init__.py b/snekbox/__init__.py
index 657c032..bed3692 100644
--- a/snekbox/__init__.py
+++ b/snekbox/__init__.py
@@ -1,7 +1,7 @@
import os
from importlib import metadata
-DEBUG = os.environ.get("DEBUG", False)
+DEBUG = os.environ.get("SNEKBOX_DEBUG", False)
try:
__version__ = metadata.version("snekbox")