-
-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error while trying to log "WatchtowerWarning: Received message after logging system shutdown" #171
Comments
Ran into this too, supplying |
Hi, I am also having this issue, in my case I use Django + gunicorn (gevent), if I set |
Linking #89 for context |
Hitting this issue using Uvicorn 0.24 and Fastapi 0.105. |
I think I've fixed this issue by flushing all CloudWatchLogHandlers before exiting any process. I'm guessing the issue is that the logging system shuts down without waiting for the cloudwatch logs to finish transmitting. The following code doesn't work if you have handlers attached to child loggers. This only flushes the handlers attached to the root logger.
|
I have the same issue with Please help!! I will tray to fork and create a pull request if catch the issue. |
"watchtower_init_.py:381: WatchtowerWarning: Received message after logging system shutdown
warnings.warn("Received message after logging system shutdown", WatchtowerWarning)"
Getting the above error while logging ,
The text was updated successfully, but these errors were encountered: