Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit e3b8f38

Browse files
committed
Enable logging
1 parent 8a3e86c commit e3b8f38

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

meta/docker/_/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,4 @@ WORKDIR /app
5353
RUN VENUE_DEBUG=true ./.venv/bin/python ./src/manage.py collectstatic --no-input
5454
USER venue
5555
WORKDIR /w
56+
ENV PYTHONUNBUFFERED=1

meta/docker/_/bin/venue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ function start-app {
2525
export PYTHONPATH="/app/src"
2626
exec /app/.venv/bin/python -m gunicorn \
2727
venue_site.wsgi:application \
28+
--enable-stdio-inheritance \
2829
--bind="0.0.0.0:${VENUE_PORT_PREFIX}81" \
2930
--preload \
3031
--workers "${VENUE_WORKERS}" \

src/venue_site/settings.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,3 +204,17 @@
204204
"security.W008",
205205
*(["security.W012", "security.W016"] if VENUE_DISABLE_SECURE_COOKIES else []),
206206
]
207+
208+
LOGGING = {
209+
"version": 1,
210+
"disable_existing_loggers": False,
211+
"handlers": {
212+
"console": {
213+
"class": "logging.StreamHandler",
214+
},
215+
},
216+
"root": {
217+
"handlers": ["console"],
218+
"level": "WARNING",
219+
},
220+
}

0 commit comments

Comments
 (0)