Enable DEBUG logging and add global exception handler for 500s

This commit is contained in:
Admin
2026-06-20 02:37:21 +00:00
parent b897c29e9b
commit 4efd865c47
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY server.py .
ENV PORT=8000
ENV LOG_LEVEL=DEBUG
EXPOSE 8000
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "8000", "--log-level", "debug"]