Deploy logs doesnt show any logs
giannsaicpibot99
PROOP

2 years ago

When I click the deploy logs I cant see any logs. It was working perfectly before but sometimes when I redeploy they just dont appear at all. This happens often. My code is written in python and I have logging enabled like this

logging.basicConfig(level=logging.INFO)
logging.info('Script started')

I tried both Legacy and v2 and get the same issue on both

Solved

5 Replies

zuchka
PRO

2 years ago

hi. it looks like you have seventeen projects. Please specify the service in question and the project it lives inside. thanks!


Status changed to Awaiting User Response Railway over 1 year ago


giannsaicpibot99
PROOP

2 years ago

In Spybox for Groups buybotNotifications and spybox-for-groups. Also, this are the current ones that I am working on right now but I've noticed that to all my projects and services that are using python. Sometimes shows the logging information correctly, but others it just doesn't display anything


Status changed to Awaiting Railway Response Railway over 1 year ago


brody
EMPLOYEE

2 years ago

Common issue with Dockerfiles not setting the PYTHONUNBUFFERED variable.

Railway relies on log line splitting and can only process unbuffered logs.


Status changed to Awaiting User Response Railway over 1 year ago


giannsaicpibot99
PROOP

2 years ago

What do I need to set it to, can you give me an example of how I set it? Is it in my Dockerfile or in the environment variables


Status changed to Awaiting Railway Response Railway over 1 year ago


brody
EMPLOYEE

2 years ago


Status changed to Awaiting User Response Railway over 1 year ago


Railway
BOT

6 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 6 months ago


Loading...