#Deployment logs not showing pritnts
32 messages · Page 1 of 1 (latest)
Project ID: e688225d-0606-4eff-a26c-58bf96ca51cb
You might find these helpful:
python?
yes it's python
what framework?
no framework, it's just a python code that uses selenium to fetch data from a website. The logs showed up but today.
are you using any kind of logger?
?
don't know what those are.
I see logs, so has the issue disappeared?
No, when I ran the script yesterday on railway It should've printed that message "Fetching events" as soon as it finsished downloading chrome driver but it only printed today.
When I ran the code locally yesterday it printed the message as soon as it finished downloading chrome driver.
and you're just using print statements?
either way set PYTHONUNBUFFERED = true in your services variables
I have prints statements and sys.stdout.write
This is done by declaring a new variable right? in the variables tab
correct
Added the variable:
But still got the same problem:
It should've printed the fetching message
did you let it redoploy?
yes
well then it's not a buffer issue, can I see your repo?
I'll send you another repo that I'm having the same issue with. With this repo it should print "Table found" but it doens't print nothing.
https://github.com/weslienlive/leading-volume
does coingecko not have an api?
Yes they have, didn't know that just wrote the code. But that won't solve the issue I have with other projects.
haha i know
Maybe it's a selenium thing.Let me see if it prints with projects that don't have it.
i mean you didnt even need selenium, it could have all been done with pythons request module and bs4
i can see inefficiencies with the code, but none that would cause print to not well print, so if youve tried that repo with PYTHONUNBUFFERED = 1 and it still didnt work, then im out of ideas, sorry