Skip to content

Conversation

@tylerjroach
Copy link
Member

  • PR title and description conform to Pull Request guidelines.

Issue #, if available:

Description of changes:

How did you test these changes?
(Please add a line here how the changes were tested)

Documentation update required?

  • No
  • Yes (Please include a PR link for the documentation update)

General Checklist

  • Added Unit Tests
  • Added Integration Tests
  • Security oriented best practices and standards are followed (e.g. using input sanitization, principle of least privilege, etc)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tylerjroach tylerjroach requested a review from a team as a code owner April 14, 2025 16:35
@tylerjroach
Copy link
Member Author

Addressed @mattcreaser 's previous PR comments from: #3018

val connectionInitMessage = json.encodeToString(WebSocketMessage.Send.ConnectionInit())
logger?.debug { "$TAG onOpen: sending connection init" }
webSocket.send(connectionInitMessage)
logger?.debug { "onOpen: sending connection init" }
Copy link
Member

Choose a reason for hiding this comment

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

Static logs like this can use direct function invocation instead of lambda form

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed for all the simple, non throwable providing log types.

// so inspecting code/reason isn't helpful as it should be
logger?.debug("$TAG onClosed: userInitiated = $userInitiatedDisconnect")
notifyClosed()
logger?.debug("onClosed: reason = $disconnectReason")
Copy link
Member

Choose a reason for hiding this comment

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

Logs with concatenation should probably be using lambda form

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

@tylerjroach tylerjroach merged commit d28f9e9 into feat/appsync-events Apr 17, 2025
@tylerjroach tylerjroach deleted the tjroach/events-ack-timeout branch April 17, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants