Fix auth helper script
This commit is contained in:
@@ -5,12 +5,15 @@ import sys
|
||||
|
||||
import django
|
||||
|
||||
LOG_PATH = "auth_debug.log"
|
||||
LOG_PATH = os.environ.get("AUTH_DEBUG_LOG", "/tmp/auth_debug.log")
|
||||
|
||||
|
||||
def log(data):
|
||||
with open(LOG_PATH, "a") as f:
|
||||
f.write(f"{data}\n")
|
||||
try:
|
||||
with open(LOG_PATH, "a") as f:
|
||||
f.write(f"{data}\n")
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
# Set up Django environment
|
||||
|
||||
Reference in New Issue
Block a user