Skip to content

Commit 729f314

Browse files
fixed issues
1 parent ce1f6cd commit 729f314

File tree

5 files changed

+4
-15
lines changed

5 files changed

+4
-15
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ DB_PASSWORD=sadilar
88
LOGGING_FILE=logs/debug.log
99
LOGGING_HANDLERS_LEVEL=INFO
1010
LOGGING_LOGGERS_LEVEL=INFO
11+
LOGGING_LOGGERS_DJANGO_LEVEL=INFO

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ venv.bak/
3333
app/static_files/
3434
/app/documents/
3535
app/media/
36+
/app/logging/

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,3 @@ https://django-simple-history.readthedocs.io/en/latest/
3737
### environment variables
3838

3939
please use .env.example as example
40-
41-
## Suggested folder structure
42-
43-
Add the following folders to the Docker container:
44-
45-
* /documents
46-
* /static_files
47-
* /logos
48-
* /media

app/app/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@
181181
"file": {
182182
"level": os.environ.get("LOGGING_HANDLERS_LEVEL", "WARNING"),
183183
"class": "logging.FileHandler",
184-
"filename": os.environ.get("LOGGING_FILE", "WARNING"),
184+
"filename": os.environ.get("LOGGING_FILE", "logging/debug.log"),
185185
"formatter": "verbose",
186186
},
187187
},
@@ -192,7 +192,7 @@
192192
"loggers": {
193193
"django": {
194194
"handlers": ["file"],
195-
"level": os.environ.get("LOGGING_LOGGERS_CONSOLE_LEVEL", "WARNING"),
195+
"level": os.environ.get("LOGGING_LOGGERS_DJANGO_LEVEL", "WARNING"),
196196
"propagate": True,
197197
},
198198
},

docker-compose.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,3 @@ services:
3636
- DB_NAME=term_db # see POSTGRES_DB above
3737
- DB_USER=sadilar # see POSTGRES_USER above
3838
- DB_PASSWORD=sadilar # see POSTGRES_PASSWORD above
39-
- LOGGING_FILE=logs/debug.log
40-
- LOGGING_HANDLERS_LEVEL=WARNING
41-
- LOGGING_LOGGERS_LEVEL=WARNING
42-
- LOGGING_LOGGERS_CONSOLE_LEVEL=WARNING

0 commit comments

Comments
 (0)