deploy logs showing error for info levels
nedhmn
TRIALOP

a year 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.

6 Replies

nedhmn
TRIALOP

a year ago

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


a year ago

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


nedhmn
TRIALOP

a year ago

lol! yes


nedhmn
TRIALOP

a year 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.


a year 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

a year ago

json it is then, thanks


Loading...