Skip to content

Add a debug message when client closes websocket attach connection #35720

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

Merged
merged 1 commit into from
Dec 8, 2017
Merged

Add a debug message when client closes websocket attach connection #35720

merged 1 commit into from
Dec 8, 2017

Conversation

boaz0
Copy link
Member

@boaz0 boaz0 commented Dec 6, 2017

- What I did

When the client closes connections that send containers output through websocket, an error message is displayed:
Error attaching websocket: %!s(<nil>)

This message is misleading.

- How I did it

This change suggests to check if error is nil and print the correct message accordingly.
If error is not nil, print Error attaching websocket:. Otherwise, websocket connection was closed by client.

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

When the client closes websocket connections that sends container
output through websocket, an error message is displayed:
"Error attaching websocket: %!s(<nil>)"

This message is misleading. Thus, this change suggests to check
if error is nil and print the correct message accordingly.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

Copy link
Member

@dnephin dnephin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah merged commit 9f5540f into moby:master Dec 8, 2017
@thaJeztah
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants