deploy logs showing error for info levels
nedhmn
TRIALOP

2 years ago

testing a service. deploy logs are showing with level error in railway's logs tab, but the logs my service is printing are info.

Closed

6 Replies

nedhmn
TRIALOP

2 years ago

cfa58c2b-7d30-4d2d-a3c2-02f7eb2c88b0


2 years ago

those logs are being printed to stderr, thus they are being treated as error logs


nedhmn
TRIALOP

2 years ago

lol! yes


nedhmn
TRIALOP

2 years ago

so, is my solution to print it to stdout? to my understanding, stderr is for logging at all levels. but i suppose there's no hard rules in this.


2 years ago

print to stdout, or much preferably, print to anything and use JSON logging, then we can pick up the level attribute and colour the logs properly from debug to error


nedhmn
TRIALOP

2 years ago

json it is then, thanks


Welcome!

Sign in to your Railway account to join the conversation.

Loading...