IssueRaiser

unfavorable logger name "uvicorn.error"

https://github.com/encode/uvicorn/blob/master/uvicorn/protocols/websockets/websockets_impl.py Every time a new websocket request comes in something like this appears in the logs: INFO [uvicorn.error] ('127.0.0.1', 47014) - "WebSocket /api" [accepted] This is slightly confusing since it is in fact not an error. What's the purpose of naming it uvicorn.error ? We noticed this when ossec kept triggering on every incoming request spamming us with false alarms. There are other questionable occurences like INFO [uvicorn.error] Application startup complete. <!-- POLAR PLEDGE BADGE START --> > [!IMPORTANT] > - We're using [Polar.sh](https://polar.sh/encode) so you can upvote and help fund this issue. > - We receive the funding once the issue is completed & confirmed by you. > - Thank you in advance for helping prioritize & fund our backlog. <a href="https://polar.sh/encode/uvicorn/issues/562"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/encode/uvicorn/issues/562/pledge.svg?darkmode=1"> <img alt="Fund with Polar" src="https://polar.sh/api/github/encode/uvicorn/issues/562/pledge.svg"> </picture> </a> <!-- POLAR PLEDGE BADGE END -->

Posted by doncatnip on Jan 28, 2020, 1:58 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (Software)

unfavorable logger name "uvicorn.error"

doncatnipJan 28, 2020, 1:58 PM

https://github.com/encode/uvicorn/blob/master/uvicorn/protocols/websockets/websockets_impl.py Every time a new websocket request comes in something like this appears in the logs: INFO [uvicorn.error] ('127.0.0.1', 47014) - "WebSocket /api" [accepted] This is slightly confusing since it is in fact not an error. What's the purpose of naming it uvicorn.error ? We noticed this when ossec kept triggering on every incoming request spamming us with false alarms. There are other questionable occurences like INFO [uvicorn.error] Application startup complete. <!-- POLAR PLEDGE BADGE START --> > [!IMPORTANT] > - We're using [Polar.sh](https://polar.sh/encode) so you can upvote and help fund this issue. > - We receive the funding once the issue is completed & confirmed by you. > - Thank you in advance for helping prioritize & fund our backlog. <a href="https://polar.sh/encode/uvicorn/issues/562"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://polar.sh/api/github/encode/uvicorn/issues/562/pledge.svg?darkmode=1"> <img alt="Fund with Polar" src="https://polar.sh/api/github/encode/uvicorn/issues/562/pledge.svg"> </picture> </a> <!-- POLAR PLEDGE BADGE END -->

Comments (0)

No comments yet. Start the discussion.

Comment on this issue