Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions BaseSpace.SDK/Infrastructure/RetryLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ private static bool HandleException(string description, ILog logger, bool allowR
{
if (allowRetry)
{
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

Thread.Sleep(1000 * delay);
return true;
}
Expand Down