Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

aws/request: Add support for logging and stopping handler lists - #557

Closed
jasdel wants to merge 2 commits into
masterfrom
reqHandleLogStop
Closed

jasdel wants to merge 2 commits into
masterfrom
reqHandleLogStop

Conversation

@jasdel

@jasdel jasdel commented Feb 16, 2016

Copy link
Copy Markdown
Contributor

Adds support for setting a logger on request.Handlerlist used by each
service client. This allows you to provide a debug logging function
which is called for each iteration in the handler list. A default
logging func is also provided, LogHandlerListItems which will log the
handler used, if named, and the current state of the request's Error.

Adds support for stopping a request.HandlerList's iteration after a
request handler has been executed. A default HandlerListStopOnError
func is provided to stop iterating a handler list's request handlers if
any request error occurs. This is added to the default Build handler
list. To stop if the request fails to build.

Updates the S3 service endpoint definition patter to remove redundant
rules. This also updates s3 testing mock regions to be consistent with
the expected pattern.
Adds support for setting a logger on `request.Handlerlist` used by each
service client. This allows you to provide a debug logging function
which is called for each iteration in the handler list. A default
logging func is also provided, `LogHandlerListItems` which will log the
handler used, if named, and the current state of the request's Error.

Adds support for stopping a `request.HandlerList`'s interation after a
request handler has been executed. A default `HandlerListStopOnError`
func is provided to stop iterating a handler list's request handlers if
any request error occurs. This is added to the default Build handler
list. To stop if the request fails to build.
@jasdel

jasdel commented Feb 16, 2016

Copy link
Copy Markdown
Contributor Author

Based off wrong root branch

@jasdel jasdel closed this Feb 16, 2016
@jasdel
jasdel deleted the reqHandleLogStop branch February 16, 2016 18:30
@jasdel
jasdel restored the reqHandleLogStop branch February 16, 2016 18:30
@jasdel
jasdel deleted the reqHandleLogStop branch February 16, 2016 18:31
@jasdel
jasdel restored the reqHandleLogStop branch February 16, 2016 18:31
@jasdel
jasdel deleted the reqHandleLogStop branch February 16, 2016 18:31
skotambkar pushed a commit to skotambkar/aws-sdk-go that referenced this pull request May 20, 2021
Fixes aws#557 by removing out dated example documentation from the SDK's
endpoints package and README. The feature to enumerate regions and
services was removed in aws#512 pending further design and development of
service specific endpoint metadata.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant