Skip to content

Conversation

ryanwentzel
Copy link
Contributor

Small change that aids debugging.

logger.ErrorFormat("Error while {0}, attempt {1}, elapsed {4}ms, retrying in {2} seconds: \r\n{3}", description,
whichAttempt, delay, message, timer.ElapsedMilliseconds);
logger.ErrorFormat("Error while {0}, status code {1}, error code {2}, attempt {3}, elapsed {4}ms, retrying in {5} seconds: \r\n{6}", description,
statusCode, errorCode, whichAttempt, timer.ElapsedMilliseconds, delay, message );
Copy link
Contributor

Choose a reason for hiding this comment

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

errorcode have good null checking?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the code that passes in the errorcode parameter defaults it to an empty string

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.

2 participants