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

feat: log the error message when an async operation fails #986

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

pivotal-marcela-campo
Copy link
Member

When doing a provision/update/delete/../etc operation, if it fails for any reason, we update last operation status and message. However we only return an error from the last_operation endpoing under the certain circumpstances (see OSBAPI spec. All other circumpstances the return code is OK and we only log the operation status (failed), but not the message (brokerapi does this for us).
With that into consideration, we need to log any error messages that ocurr in our application to improve troubleshooting. This change logs the error message that will be saved into the last operation message whenever last operation is updated with a failed state.

#187292596

Checklist:

  • Have you added or updated tests to validate the changed functionality?
  • Have you added Release Notes in the docs repositories?
  • Have you followed the Conventional Commits specification?

@pivotal-marcela-campo pivotal-marcela-campo force-pushed the feat_log_failed_operation_error branch from 5d0d118 to 39cf477 Compare March 27, 2024 16:29
When doing a provision/update/delete/../etc operation, if it fails
for any reason, we update last operation status and message. However
we only return an error from the last_operation endpoing under the
certain circumpstances (see [OSBAPI spec](https://github.com/openservicebrokerapi/servicebroker/blob/master/spec.md#polling-last-operation-for-service-instances).
All other circumpstances the return code is OK and we only log
the operation status (failed), but not the message (brokerapi does this
for us).
With that into consideration, we need to log any error messages that
ocurr in our application to improve troubleshooting. This change logs
the error message that will be saved into the last operation message
whenever last operation is updated with a failed state.

[#187292596](https://www.pivotaltracker.com/story/show/187292596)
@pivotal-marcela-campo pivotal-marcela-campo force-pushed the feat_log_failed_operation_error branch from 39cf477 to d7937b2 Compare March 28, 2024 09:36
@pivotal-marcela-campo pivotal-marcela-campo merged commit 49513de into main Mar 28, 2024
8 checks passed
@blgm blgm deleted the feat_log_failed_operation_error branch April 8, 2024 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants