4 months ago
I have a Uvicorn server running the FastAPI framework. Uvicorn writes logs at the INFO level, but these are treated as error level in the deployment logs.
Example of logs:
INFO: Will watch for changes in these directories: ['/app']
INFO: Uvicorn running on http://[::]:8000 (Press CTRL+C to quit)
INFO: Started reloader process [1] using StatReload
INFO: Started server process [3]
INFO: Waiting for application startup.
INFO: Application startup complete.
3 Replies
4 months ago
Hello,
They are treated as error because they are logged to stderr.
We do not take into account the INFO
portion of the log message as there is no true standard for that.
For best support you would use JSON logging and then we will respect the level
attribute regardless of if the log was sent to stderr or stdout.
Best,
Brody
Status changed to Awaiting User Response railway[bot] • 4 months ago
4 months ago
Thanks for the explanation and a quick response!
Status changed to Awaiting Railway Response railway[bot] • 4 months ago
Status changed to Awaiting User Response railway[bot] • 4 months ago
Status changed to Solved brody • 4 months ago