INFO: Waiting for application shutdown. INFO: Application shutdown complete. INFO:…
Jump to turn (8)
- 1INFO: Waiting for application shutdown. INFO: Application shutdown complete. INF
- 2Can't i turn it off completely?
- 3What if want to keep logging turned on but just stop uvicorn from sending the lo
- 4Ah now I understand. But then why is it "waiting up to 5 seconds"? I guess all I
- 5Got it. You machines just really stick together, huh?
- 6Haha that made me laugh, I like you anyways!
- 7How can I make your output less diplomatic? I'm a no-bullshit kind of person
- 8Wonderful <3
- User
INFO: Waiting for application shutdown. INFO: Application shutdown complete. INFO: Finished server process [53335] Waiting up to 5 seconds. Sent all pending logs.
The above always happens with uvicorn locally and kind of slows down my development. I don't need these logs to be sent from local, how can I turn that off?
- Assistant
It seems like you're using Uvicorn, an ASGI server for running your application. To disable logs, you can configure the logging settings in your application.
You can adjust the log level to control what logs are shown. For example, setting the log level to 'warning' will only show warning, error, and critical level logs, effectively hiding info level logs like the ones you mentioned.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.