R
Railway•2y ago
SHAKA PAKA

CLI logs

How to check logs for specific service?
16 Replies
Percy
Percy•2y ago
Project ID: N/A
SHAKA PAKA
SHAKA PAKAOP•2y ago
N/A
root
root•2y ago
I'm not sure if that exact feature exists, but you can get the deployment ID and pass that to the --deployment option.
SHAKA PAKA
SHAKA PAKAOP•2y ago
root
root•2y ago
Try --deployment=b048db7
root
root•2y ago
Make sure you're grabbing the deployment ID, not the commit or project ID, also
SHAKA PAKA
SHAKA PAKAOP•2y ago
Brody
Brody•17mo ago
deployment is a boolean value, and irrelevant for this. railway logs should show the logs for the linked service, but it currently doesn't, i will report this @jr - railway logs not showing correct logs for linked service
jr
jr•17mo ago
Can you please share a link to the service you are trying to get logs for
Brody
Brody•17mo ago
lol me or them?
jr
jr•17mo ago
them Sorry I should have been more clear
Brody
Brody•17mo ago
no worries, I can reproduce this too if that's helpful? well they're using the cli wrong, but for what I tagged you for is the real issue
jr
jr•17mo ago
oh yeah, what are the steps
Brody
Brody•17mo ago
I have a project with two services, so I run railway link, railway service, and then railway logs, and the logs it prints are from the other service not the service I chose in railway service want the project id?
jr
jr•17mo ago
ah no that is okay. Seems to be a core issue with the CLI. Created an issue on that repo https://github.com/railwayapp/cli/issues/436 Will try to get to it this week Thanks for the ping though 😄
Brody
Brody•17mo ago
perfect, thank you!
Want results from more Discord servers?
Add your server