-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from steamcmd/improve-logging
Improve logging
- Loading branch information
Showing
7 changed files
with
123 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,24 +13,15 @@ jobs: | |
name: Test Image | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Build Image | ||
run: docker build -t steamcmd/api:latest . | ||
|
||
python-lint: | ||
name: Python Lint | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ricardochaves/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: jpetrucciani/ruff-check@main | ||
with: | ||
# python files | ||
python-root-list: "src" | ||
# enabled linters | ||
use-black: true | ||
# disabled linters | ||
use-pylint: false | ||
use-pycodestyle: false | ||
use-flake8: false | ||
use-mypy: false | ||
use-isort: false | ||
path: 'src/' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,8 +84,8 @@ possible as well. | |
|
||
All the settings are optional. Keep in mind that when you choose a cache type | ||
that you will need to set the corresponding cache settings for that type as well | ||
(ex.: `REDIS_HOST`, `REDIS_PORT`, `REDIS_PASSWORD` is required when using the | ||
**redis** type). | ||
(ex.: `REDIS_HOST`, `REDIS_PORT`, `REDIS_PASSWORD` or `REDIS_URL` is required | ||
when using the **redis** type). | ||
|
||
All the available options in an `.env` file: | ||
``` | ||
|
@@ -106,6 +106,9 @@ REDIS_PASSWORD="YourRedisP@ssword!" | |
# (see: https://redis-py.readthedocs.io/en/stable/#quickly-connecting-to-redis) | ||
REDIS_URL="redis://YourUsername:YourRedisP@[email protected]:6379" | ||
# logging | ||
LOG_LEVEL=info | ||
# deta | ||
DETA_BASE_NAME="steamcmd" | ||
DETA_PROJECT_KEY="YourDet@ProjectKey!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,9 @@ fastapi | |
redis | ||
deta | ||
|
||
python-dotenv | ||
semver | ||
python-dotenv | ||
logfmter | ||
|
||
steam[client] | ||
gevent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters