Skip to content

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

Merged
thaJeztah merged 1 commit intomoby:masterfrom
boaz0:weboscket_debug
Dec 8, 2017
Merged

Add a debug message when client closes websocket attach connection#35720
thaJeztah merged 1 commit intomoby:masterfrom
boaz0:weboscket_debug

Conversation

@boaz0
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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