Skip to content
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

Remove debug print statements for websocket status #253

Merged
merged 11 commits into from Feb 2, 2024

Conversation

calvincestari
Copy link
Member

@calvincestari calvincestari commented Feb 1, 2024

Fixes apollographql/apollo-ios#3325.

This removes the two debugPrint statements from websocket disconnection status changes. There really is no point to them since debugPrint only writes to stdout and in both cases the disconnection is sent to the delegate's handler or all websocket watchers.

There is another debugPrint statement being called in the DispatchQueue extension but I'm not really sure how we should handle that one. My first thought was to change it to a preconditionFailure which would alert users that there is an error flow not being handled but the standard Release build (-0) will crash their app which is a breaking change. That function also doesn't throw so there really is nothing to be done other than swallowing the error; maybe we should just leave that one alone for now since at least there will be log message being printed somewhere?

@calvincestari calvincestari requested a review from a team as a code owner February 1, 2024 00:21
Copy link

netlify bot commented Feb 1, 2024

Deploy Preview for eclectic-pie-88a2ba canceled.

Name Link
🔨 Latest commit 1debfc6
🔍 Latest deploy log https://app.netlify.com/sites/eclectic-pie-88a2ba/deploys/65bd390fa3637e0008478df0

Copy link
Member

@BobaFetters BobaFetters left a comment

Choose a reason for hiding this comment

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

Looks good to me thanks!

Also yea I think the other one in the DispatchQueue extension we should probably leave alone for now.

@calvincestari calvincestari merged commit 483b7e4 into main Feb 2, 2024
20 checks passed
@calvincestari calvincestari deleted the remove-debug-print branch February 2, 2024 19:27
BobaFetters pushed a commit to apollographql/apollo-ios that referenced this pull request Feb 2, 2024
BobaFetters pushed a commit that referenced this pull request Feb 2, 2024
6957435 Remove debug print statements for websocket status (#253)

git-subtree-dir: apollo-ios
git-subtree-split: 6957435
BobaFetters pushed a commit that referenced this pull request Feb 2, 2024
…cket status

git-subtree-dir: apollo-ios
git-subtree-mainline: f922974
git-subtree-split: 6957435
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants