2 years ago
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
13 Replies
2 years ago
can you show a screenshot of the expanded logs?
2 years ago
also what logger library you are using and the formatting involved with that
2 years 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.
2 years ago
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
2 years ago
I'm sure this would be a super easy fix
2 years ago
yep, will take a look when I can
2 years ago
haha sorry not for you, I mean for the team, you aren't doing anything wrong
2 years ago
the team is hands on keyboard to fix the logging issue
2 years 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
2 years ago
Sweet! I can confirm, it's showing again for me
2 years ago
will update further when I have more information about the outright missing logs
2 years 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
2 years ago
sorry for the late reply, but all known logging issues on the v2 runtime have been fixed