a month ago
My pipeline is working correctly but I am not getting any runtime logs (which I assume falls under deployment logs, kind of unclear). I have a job queue and a delivery worker that is quite noisy and is set to print status whenever it does anything. I can check the queue as well and I can see that the status of the job is completed. Any idea on why I'm not getting any logs?
Pinned Solution
a month ago
Hello alasagna,
your buffering theory is legit, railway only captures what actually gets written to stdout/stderr, so if your output is buffered and never flushed before the process ends, railway never sees it.
so the fix depends on your language/runtime, you need to make sure your stdout is set to unbuffered or that you're explicitly flushing after each log, also worth checking: railway drops logs if you exceed 500 lines per second per replica, so if your worker is very noisy you might be hitting that limit silently
8 Replies
Status changed to Open Railway • about 1 month ago
a month ago
Is there something in your codebase that filters out such logs in a production environment?
0x5b62656e5d
Is there something in your codebase that filters out such logs in a production environment?
a month ago
I don't believe so. Only thing I can think of is my outputs are buffered, and something went wrong between the error and the log being created. Do you think that's a real possibility?
a month ago
Hello alasagna,
your buffering theory is legit, railway only captures what actually gets written to stdout/stderr, so if your output is buffered and never flushed before the process ends, railway never sees it.
so the fix depends on your language/runtime, you need to make sure your stdout is set to unbuffered or that you're explicitly flushing after each log, also worth checking: railway drops logs if you exceed 500 lines per second per replica, so if your worker is very noisy you might be hitting that limit silently
a month ago
what language are you using? that'll help narrow down the exact fix
a month ago
It's entirely in python. I just unbuffered my error messages but I'm still not getting any runtime logs.
alasagna
It's entirely in python. I just unbuffered my error messages but I'm still not getting any runtime logs.
a month ago
Thank you for taking the time to help me with this btw.
a month ago
Ah! Nevermind. Unbuffering fixed it. Was just a slight delay.
a month ago
glad it works
Status changed to Solved brody • about 1 month ago