-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request #24: BMA-5998 Improve debugging with better error messag…
…es and logging Merge in INFRA/terraform-provider-leaseweb from feature/BMA-5998/improve-debugging to master * commit 'a6dc796b8c6a9b33b6f1126b0148b3b319cc477c': BMA-5998 Display JSON request encoding errors similar to response decoding ones BMA-5998 Add API context to response body decoding error BMA-5998 Extract API context message to variable BMA-5998 Add prefix message to response body JSON decoding error BMA-5998 Remove separate logAPIRequest function BMA-5998 Introduce doAPIRequest helper function BMA-5998 Add some missing deferred closing of response.Body BMA-5998 Log URL query parameters as part of the URL BMA-5998 Use http method constants BMA-5988 Fix confusing error variables name BMA-5998 Add correlation ID in API request error logging BMA-5998 Add error details in API request error logging BMA-5998 Add logging of API requests error BMA-5998 Add logging of API requests BMA-5988 Extract API URL and method to variables BMA-5988 Pass context to all API client functions BMA-5998 Improve error message context with more specific information BMA-5998 Display error information from response body
- Loading branch information
Showing
9 changed files
with
436 additions
and
302 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters