Skip to content

Commit

Permalink
Set the default log level to WARNING (#326)
Browse files Browse the repository at this point in the history
* Set the default & dev log level to WARNING
  • Loading branch information
danniel authored Sep 27, 2024
1 parent eefe8cb commit bda489e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/redirectioneaza/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
ENVIRONMENT=(str, "production"),
DATA_UPLOAD_MAX_NUMBER_FIELDS=(int, 1000),
OLD_SESSION_KEY=(str, ""),
LOG_LEVEL=(str, "INFO"),
LOG_LEVEL=(str, "WARNING"),
ENABLE_CACHE=(bool, True),
ENABLE_FORMS_DOWNLOAD=(bool, True),
TIMEDELTA_FORMS_DOWNLOAD_MINUTES=(int, 360),
Expand Down
2 changes: 1 addition & 1 deletion docker/dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ENV PYTHONUNBUFFERED=1

ENV DEBUG=False
ENV ENVIRONMENT=production
ENV LOG_LEVEL=INFO
ENV LOG_LEVEL=${LOG_LEVEL:-WARNING}

Check warning on line 55 in docker/dockerfiles/Dockerfile

View workflow job for this annotation

GitHub Actions / Build Docker image / Build and push image to registry

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$LOG_LEVEL' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/

ENV RUN_MIGRATIONS=True
ENV RUN_COMPILE_MESSAGES=True
Expand Down
1 change: 1 addition & 0 deletions docker/dockerfiles/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ENV PYTHONUNBUFFERED=1

ENV DEBUG=${DEBUG:-True}
ENV ENVIRONMENT=${ENVIRONMENT:-development}
ENV LOG_LEVEL=${LOG_LEVEL:-WARNING}

ENV RUN_MIGRATIONS=True
ENV RUN_COMPILE_MESSAGES=True
Expand Down
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module "ecs_redirectioneaza" {
},
{
name = "LOG_LEVEL"
value = "INFO"
value = "WARNING"
},
{
name = "ENABLE_DJANGO_ADMIN"
Expand Down

0 comments on commit bda489e

Please sign in to comment.