R
Railway13mo ago
Rexus752

All messages in log highlighted as error

Since when I uploaded for the first time my project on Railway, log messages seem to be highlighted in red as if they were considered error messages, but they aren't. How can I fix this? Is it because of my "custom" message formatting? (I obfuscated my bot's token) Project ID: 8f6fcf38-2edb-4d1f-a36c-9765c6318f1d
No description
Solution:
logs to stderr will be coloured as red by default, a lot of logging frameworks log to stderr by default for one reason or another. the two options are, configure the logger to log to stdout, or turn off error colouring...
Jump to solution
4 Replies
Percy
Percy13mo ago
Project ID: 8f6fcf38-2edb-4d1f-a36c-9765c6318f1d
Solution
Brody
Brody13mo ago
logs to stderr will be coloured as red by default, a lot of logging frameworks log to stderr by default for one reason or another. the two options are, configure the logger to log to stdout, or turn off error colouring
Rexus752
Rexus752OP13mo ago
thank you very much, I configured the logger to log to stdout and it worked
Brody
Brody13mo ago
no problem!
Want results from more Discord servers?
Add your server