R
Railwayβ€’12mo ago
iamdhritiman01

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

No description
20 Replies
Percy
Percyβ€’12mo ago
Project ID: 3bbd4a87-8f97-4c9f-ae12-fc19da4d521a
iamdhritiman01
iamdhritiman01β€’12mo ago
3bbd4a87-8f97-4c9f-ae12-fc19da4d521a
Brody
Brodyβ€’12mo ago
do your logs show in the deployment logs?
iamdhritiman01
iamdhritiman01β€’12mo ago
I have my staging setup as a different project and its showing the logs
Brody
Brodyβ€’12mo ago
right but what does the deploy logs say?
iamdhritiman01
iamdhritiman01β€’12mo ago
Project ID production: 7b03f3e7-50a7-49a8-b2b6-5b585984e771 Project ID staging: 3bbd4a87-8f97-4c9f-ae12-fc19da4d521a
iamdhritiman01
iamdhritiman01β€’12mo ago
No description
Brody
Brodyβ€’12mo ago
are you making sure to log unbuffered to stdout / stderr?
iamdhritiman01
iamdhritiman01β€’12mo ago
This is from staging. Same code.
No description
Brody
Brodyβ€’12mo ago
what is your logging framework?
iamdhritiman01
iamdhritiman01β€’12mo 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β€’12mo ago
oh thats good to hear! what method did you use to redeploy?
iamdhritiman01
iamdhritiman01β€’12mo ago
The native redeploy method which railway provides (using the same config)
Brody
Brodyβ€’12mo ago
through the 3 dot menu?
iamdhritiman01
iamdhritiman01β€’12mo ago
yup
iamdhritiman01
iamdhritiman01β€’12mo ago
No description
Brody
Brodyβ€’12mo 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β€’12mo ago
tendency to deploy old code
What do you mean by "old code"?
Brody
Brodyβ€’12mo 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β€’12mo ago
Ah okay. So its buggy. But it worked correctly for me. πŸ™‚ Thanks for the hack btw
Want results from more Discord servers?
Add your server