Can't see django logs even if debug = true
caspianmoon
PROOP

a year ago

I am not able to see my backend's logs even though debug = true. It used to show before and would print out every log. I've been trying everything and it just says

Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/587fd13c-c84c-4f01-a365-b34c03c7fd76/vol_nu3elvi378alu9cv

Feb 20 00:19:38

Starting Container

Feb 20 00:19:39

[2025-02-19 20:19:38 +0000] [1] [INFO] Starting gunicorn 22.0.0

Feb 20 00:19:39

[2025-02-19 20:19:38 +0000] [1] [INFO] Listening at: http://0.0.0.0:8080 (1)

Feb 20 00:19:39

[2025-02-19 20:19:38 +0000] [1] [INFO] Using worker: gthread

Feb 20 00:19:39

[2025-02-19 20:19:38 +0000] [4] [INFO] Booting worker with pid: 4

Feb 20 00:19:39

[2025-02-19 20:19:38 +0000] [5] [INFO] Booting worker with pid: 5

Solved

3 Replies

unicodeveloper
PRO

a year ago

gunicorn doesn't do http access logs by default. You need to enable it. https://docs.gunicorn.org/en/stable/settings.html#accesslog

Have you seen that it shows your http logs in the http logs tab?


Status changed to Awaiting User Response Railway about 1 year ago


caspianmoon
PROOP

a year ago

It's been solved.


Status changed to Awaiting Railway Response Railway about 1 year ago


unicodeveloper
PRO

a year ago

Awesome


Status changed to Awaiting User Response Railway about 1 year ago


Status changed to Solved unicodeveloper about 1 year ago


Loading...