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

Log errors from callback form #389

Merged
merged 1 commit into from
Sep 16, 2020

Conversation

aledustet
Copy link
Contributor

Why:

Once we have the call back form online we will need some visibility on the behavior of the same while we are testing on staging.

This Commit:

  • Add logging logic to the call back form
  • Add tests for the error handling on the component

Copy link
Contributor

@johnschoeman johnschoeman left a comment

Choose a reason for hiding this comment

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

LGTM!

})
Logger.error(
`FailureToRequestCallback.${response.error}.${
response.message || defaultErrorMessage
Copy link
Contributor

Choose a reason for hiding this comment

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

defaultErrorMessage is assigned to" " here, should we be using something different for the logger?

Why:
----

Once we have the call back form online we will need some visibility on
the behavior of the same while we are testing on staging.

This Commit:
----

- Add logging logic to the call back form
- Add tests for the error handling on the component
@aledustet aledustet force-pushed the chore/callback-request-error-handling branch from 035b261 to b8283ef Compare September 16, 2020 14:27
@aledustet aledustet merged commit 10bdffc into develop Sep 16, 2020
@aledustet aledustet deleted the chore/callback-request-error-handling branch September 16, 2020 14:51
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.

None yet

2 participants