D Ф m i И i q ц e L Ф y e r commited on
Commit ·
4105cdc
1
Parent(s): 47b3a88
Fix: hide password in logs and revert to Supabase (UQAM timeout)
Browse files- syscred/database.py +3 -1
syscred/database.py
CHANGED
|
@@ -170,7 +170,9 @@ def init_db(app):
|
|
| 170 |
db_url = os.environ.get('SYSCRED_DATABASE_URL')
|
| 171 |
|
| 172 |
if db_url:
|
| 173 |
-
|
|
|
|
|
|
|
| 174 |
else:
|
| 175 |
# Fallback to SQLite - Supabase operations use REST API separately
|
| 176 |
import tempfile
|
|
|
|
| 170 |
db_url = os.environ.get('SYSCRED_DATABASE_URL')
|
| 171 |
|
| 172 |
if db_url:
|
| 173 |
+
# Hide password in logs
|
| 174 |
+
safe_url = db_url.split('@')[0].split('//')[1].split(':')[0] + '@' + db_url.split('@')[1]
|
| 175 |
+
print(f"[SysCRED-DB] Using PostgreSQL database: postgresql://***@{safe_url.split('@')[1]}")
|
| 176 |
else:
|
| 177 |
# Fallback to SQLite - Supabase operations use REST API separately
|
| 178 |
import tempfile
|