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

Print error to info log before backing off #641

Merged
merged 3 commits into from
Aug 23, 2021

Conversation

Nirusu
Copy link
Contributor

@Nirusu Nirusu commented Jul 27, 2021

Thank you for your contribution to Go-AutoRest! We will triage and review it as soon as we can.

As part of submitting, please make sure you can make the following assertions:

  • I've tested my changes, adding unit tests if applicable.
  • I've added Apache 2.0 Headers to the top of any new source files.

This is a small change I made that should help users of the Azure SDK debugging networking issues whenever DelayForBackoff(WithCap) is called. Normally you will have to wait until the cap is reached to actually see the error. With this change, it should be printed to the info log (assuming AZURE_GO_SDK_LOG_LEVEL is set at least to Info) before DelayForBackoff(WithCap) is called, so that potential errors can be detected quicker.

Copy link
Member

@jhendrixMSFT jhendrixMSFT left a comment

Choose a reason for hiding this comment

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

Sorry for the delay.

autorest/sender.go Outdated Show resolved Hide resolved
@Nirusu Nirusu force-pushed the log-before-backoff branch 2 times, most recently from 10ed731 to 83f7a08 Compare August 23, 2021 20:37
@jhendrixMSFT
Copy link
Member

@Nirusu also, can you please sign the CLA? There's a link above.

@Nirusu
Copy link
Contributor Author

Nirusu commented Aug 23, 2021

Sorry for the force-pushes, actually changed the "sleeping for" message by accident too; removed that change.

Yup, no problem, signed the CLA.

@jhendrixMSFT jhendrixMSFT merged commit 3ddafdd into Azure:master Aug 23, 2021
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