#How do I view logs from before the most recent deployment? (pro plan)

20 messages · Page 1 of 1 (latest)

normal plinth
#

Besides my last deployment (which says active), all my other deployments are greyed out and say skipped. That's fine, but I'm only able to view logs for my active deployment, and all other past deployments show "No deployment logs. All output sent to stdout will be displayed here".

I'm on a pro plan and so I believe my logs should be stored for up to 30 days.

proper nimbusBOT
#

Project ID: 6f77d8dd-a5b1-444e-a5a1-0194447af261

normal plinth
#

project id: 6f77d8dd-a5b1-444e-a5a1-0194447af261

tawny pasture
#

can you link to a specific service?

normal plinth
#

does that link work for you?

tawny pasture
#

yes, can you also provide a link to a deployement that shows no logs

normal plinth
#
Railway

Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.

Railway

Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.

Railway

Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.

tawny pasture
#

they are all skipped, can you explain why you would expect to see deployment logs for them?

normal plinth
#

ah that is me being stupid- the removed and skipped tag looked the same to me

#

I do see some logs that appear to be missing though from this deployment: https://railway.app/project/6f77d8dd-a5b1-444e-a5a1-0194447af261/service/d4328b3f-da6f-49c0-a642-1b8311c52077?id=ef588e61-341c-4f04-810e-31741c72c6d5

I see logs from one user's session but not another. Is there that might go wrong with concurrent requests being logged with railway? I'm a bit confused because I see records of user #2's session in our database which means the logs should have been written. thinkies

Railway

Railway is an infrastructure platform where you can provision infrastructure, develop with that infrastructure locally, and then deploy to the cloud.

#

I do see some logs from user #2 session but it appears like a bunch of earlier ones are missing

tawny pasture
#

how are you logging? are you using some kind of logging library?

normal plinth
#

yeah, winston

tawny pasture
#

are you making sure to disable log buffering

normal plinth
#

I don't have it enabled and I think it's disabled by default. This is our setup:

const logger = winston.createLogger({
  level: 'info',
  format: winston.format.combine(
    winston.format.timestamp(),
    winston.format.json()
  ),
  defaultMeta: { service: 'audio-response-service' },
  transports: [
    new winston.transports.Console(),
  ],
});
tawny pasture
#

you'd want to explicitly disable it

normal plinth
tawny pasture
#

it wouldn't be railway specific configuration, you'd want to reference Winston's docs

normal plinth
#

right, I just thought that there might be something in your docs since it was recommended. I've been looking for a while and I don't see anything about buffering or how to disable it, so I assume it doesn't exist by default. Any other recommendations?