Runtime V2 not showing logs

Hi,

I just switch to the new runtime and the logs are not appearing in the deploy logs or logs page.

When I expend with the plus icon, I can see the correct metadata.

project id 34849d22-d685-4e73-8858-fbd4fe42ea65

0 Replies

brody
EMPLOYEE

a year ago

can you show a screenshot of the expanded logs?


brody
EMPLOYEE

a year ago

also what logger library you are using and the formatting involved with that


brody
EMPLOYEE

a year ago

update: someone else had the same issue and with their help i was able to reproduce, if your issue is the exact same as theirs it means you are using json structured logging and railway is not picking up your message attribute, but funny enough it will pick up a msg attribute and display that attribute as your message.

I will bring this up to the team.


I'm using nestjs + wintson with the following formatting

format.combine(format.errors({ stack: true }), format.timestamp(), format.json(), PIIFormat())

and I can confirm, on the legacy runtime, the message that was showing on the log line was the one with the message key in json format. Since I'm mostly relying on newrelic for all my logs anyway, I'm not gonna change anything on my logger, will wait to hear from you/team back about that


brody
EMPLOYEE

a year ago

I'm sure this would be a super easy fix


yep, will take a look when I can


brody
EMPLOYEE

a year ago

haha sorry not for you, I mean for the team, you aren't doing anything wrong


brody
EMPLOYEE

a year ago

the team is hands on keyboard to fix the logging issue


brody
EMPLOYEE

a year ago

update: one half of this problem has been fixed, structured logs with a message attribute will not be blank anymore, the missing logs are still being worked on


Sweet! I can confirm, it's showing again for me


brody
EMPLOYEE

a year ago

will update further when I have more information about the outright missing logs


brody
EMPLOYEE

a year ago

update: the missing logs are fixed, but theres a new issue that arose with the possibility of them being not shown in the correct order


brody
EMPLOYEE

a year ago

sorry for the late reply, but all known logging issues on the v2 runtime have been fixed


Loading...