My logs are not being displayed in railway for my production app.

No description
20 Replies
Percy
Percyβ€’7mo ago
Project ID: 3bbd4a87-8f97-4c9f-ae12-fc19da4d521a
iamdhritiman01
iamdhritiman01β€’7mo ago
3bbd4a87-8f97-4c9f-ae12-fc19da4d521a
Brody
Brodyβ€’7mo ago
do your logs show in the deployment logs?
iamdhritiman01
iamdhritiman01β€’7mo ago
I have my staging setup as a different project and its showing the logs
Brody
Brodyβ€’7mo ago
right but what does the deploy logs say?
iamdhritiman01
iamdhritiman01β€’7mo ago
Project ID production: 7b03f3e7-50a7-49a8-b2b6-5b585984e771 Project ID staging: 3bbd4a87-8f97-4c9f-ae12-fc19da4d521a
iamdhritiman01
iamdhritiman01β€’7mo ago
No description
Brody
Brodyβ€’7mo ago
are you making sure to log unbuffered to stdout / stderr?
iamdhritiman01
iamdhritiman01β€’7mo ago
This is from staging. Same code.
No description
Brody
Brodyβ€’7mo ago
what is your logging framework?
iamdhritiman01
iamdhritiman01β€’7mo ago
Nestjs logger and console.log I redeployed my app and its working fine now. Thanks for you time @Brody . Really appreciate it πŸ™‚
Brody
Brodyβ€’7mo ago
oh thats good to hear! what method did you use to redeploy?
iamdhritiman01
iamdhritiman01β€’7mo ago
The native redeploy method which railway provides (using the same config)
Brody
Brodyβ€’7mo ago
through the 3 dot menu?
iamdhritiman01
iamdhritiman01β€’7mo ago
yup
iamdhritiman01
iamdhritiman01β€’7mo ago
No description
Brody
Brodyβ€’7mo ago
that has a tendency to deploy old code, can you do another redeploy with this instead? https://bookmarklets.up.railway.app/service-redeploy/
iamdhritiman01
iamdhritiman01β€’7mo ago
tendency to deploy old code
What do you mean by "old code"?
Brody
Brodyβ€’7mo ago
maybe code was a subpar word, i mean it can sometimes redeploy an old deployment, instead of the deployment you clicked on
iamdhritiman01
iamdhritiman01β€’7mo ago
Ah okay. So its buggy. But it worked correctly for me. πŸ™‚ Thanks for the hack btw