Skip to content

Commit

Permalink
refactor(csharp): Playground
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#2744

Co-authored-by: Morgan Leroi <morgan.leroi@gmail.com>
  • Loading branch information
algolia-bot and morganleroi committed Feb 20, 2024
1 parent c743a8e commit 303b8de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions algoliasearch/Transport/HttpTransport.cs
Expand Up @@ -190,9 +190,9 @@ await ExecuteRequestAsync<VoidResult>(method, uri, requestOptions, ct)
}
}

if (_logger.IsEnabled(LogLevel.Debug))
if (_logger.IsEnabled(LogLevel.Error))
{
_logger.LogDebug("Retry strategy failed: {ErrorMessage}", _errorMessage);
_logger.LogError("Retry strategy failed: {ErrorMessage}", _errorMessage);
}

throw new AlgoliaUnreachableHostException("RetryStrategy failed to connect to Algolia. Reason: " + _errorMessage);
Expand Down

0 comments on commit 303b8de

Please sign in to comment.