Skip to content

Commit

Permalink
set log level of uvicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Jun 28, 2024
1 parent 6439d1b commit 8906f26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ FROM base as production
RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser /project
USER appuser

CMD ["uvicorn", "src.core.server:app", "--proxy-headers", "--host", "0.0.0.0"]
CMD ["uvicorn", "src.core.server:app", "--proxy-headers", "--host", "0.0.0.0", "--log-level", "warning"]
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ services:
api_port: 5000
image: public_api
# command: bash -c "apt update && apt install -y curl && sleep infinity"
command: uvicorn src.core.server:app --host 0.0.0.0 --reload --reload-include src/*
command: uvicorn src.core.server:app --host 0.0.0.0 --reload --reload-include src/* --log-level warning
volumes:
- ./src:/project/src
ports:
Expand Down

0 comments on commit 8906f26

Please sign in to comment.