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

Fix timing on logging a plugin connection error #2185

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

carolynvs
Copy link
Member

When connecting to a plugin and it fails to connect, log the error first, and then call close on the connection. This ensures that the order of the error(s) in our log file/traces match the order the events happened. Otherwise it's easy to confuse the error from connect with any additional errors triggered by close, when they are logged out of order.

This fixes the order of the errors being logged which should help with that.

When connecting to a plugin and it fails to connect, log the error
first, and then call close on the connection. This ensures that the
order of the error(s) in our log file/traces match the order the events
happened. Otherwise it's easy to confuse the error from connect with any
additional errors triggered by close, when they are logged out of order.

This fixes the order of the errors being logged which should help with
that.

Signed-off-by: Carolyn Van Slyck <[email protected]>
@carolynvs carolynvs marked this pull request as ready for review June 21, 2022 15:16
@carolynvs carolynvs requested a review from VinozzZ June 21, 2022 15:16
@carolynvs carolynvs merged commit 1a797b6 into getporter:release/v1 Jun 21, 2022
@carolynvs carolynvs deleted the fix-plugin-err-log-timing branch June 21, 2022 16:58
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.

2 participants