-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
should aiohttp also logging websocket? #5586
Comments
@NewUserHa could you please add the steps to reproduce your issue? aiohttp uses the standard logging module, maybe try setting the logging level to |
don't have the code now. |
@NewUserHa I am sorry for the missunderstanding. Yes, the server will only log a warning when subscribing to the |
what |
@NewUserHa it will display a warning when the client protocols don’t overlap server-known ones when establishing a connection. |
that's right. |
@NewUserHa As of right now I think the only solution is to manually add logging statements, you can check out the chat demo for an example. |
ok. checked that. |
I see why this feature idea may be useful. Although, unlike normal HTTP, WebSocket connections are long-living. In the case of HTTP, the access log entries are emitted upon sending the HTTP responses (and include the response details). I suppose it's okay to have connect/disconnect logs but it's important to understand that any excessive logging to stdout/stderr hurts performance. |
🐣 Is your feature request related to a problem? Please describe.
no
💡 Describe the solution you'd like
aiohttp won't log any websocket access log except it will log error 400 for a
GET
.should aiohttp log websocket when established? or when every message sent and received?
❓ Describe alternatives you've considered
no
📋 Additional context
na
The text was updated successfully, but these errors were encountered: