diff --git a/BaseSpace.SDK/Infrastructure/RetryLogic.cs b/BaseSpace.SDK/Infrastructure/RetryLogic.cs index b839458..6128568 100644 --- a/BaseSpace.SDK/Infrastructure/RetryLogic.cs +++ b/BaseSpace.SDK/Infrastructure/RetryLogic.cs @@ -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 ); Thread.Sleep(1000 * delay); return true; }