Skip to content

Commit

Permalink
Increase uvicorn log level
Browse files Browse the repository at this point in the history
This gets rid of the "INFO" level endpoint logging which was made
redundant by the addition of structlog logging
  • Loading branch information
rsbowman-striveworks committed Feb 9, 2024
1 parent 361cc41 commit 288a769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ RUN python -m pip install -U pip
# git and put .git (which setuptools_scm needs to determine the version) in the container
RUN SETUPTOOLS_SCM_PRETEND_VERSION=${VERSION} python -m pip install .
COPY ./velour_api /src/velour_api
CMD ["uvicorn", "velour_api.main:app", "--host", "0.0.0.0"]
CMD ["uvicorn", "velour_api.main:app", "--host", "0.0.0.0", "--log-level", "warning"]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
VELOUR_SECRET_KEY: ${VELOUR_SECRET_KEY}
VELOUR_USERNAME: ${VELOUR_USERNAME}
VELOUR_PASSWORD: ${VELOUR_PASSWORD}
command: "uvicorn velour_api.main:app --reload --host 0.0.0.0"
command: "uvicorn velour_api.main:app --reload --host 0.0.0.0 --log-level warning"
depends_on:
- 'db'
- 'migrations'
Expand Down

0 comments on commit 288a769

Please sign in to comment.