Skip to content

Commit

Permalink
change log level for error in CloseAsync
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-knozderko committed Aug 21, 2024
1 parent 3c17c2b commit 4e2094b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Snowflake.Data/Core/Session/SFSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ internal async Task CloseAsync(CancellationToken cancellationToken)
var response = await restRequester.PostAsync<CloseResponse>(closeSessionRequest, cancellationToken).ConfigureAwait(false);
if (!response.success)
{
logger.Debug($"Failed to delete session {sessionId}, error ignored. Code: {response.code} Message: {response.message}");
logger.Error($"Failed to delete session {sessionId}, error ignored. Code: {response.code} Message: {response.message}");

Check warning on line 313 in Snowflake.Data/Core/Session/SFSession.cs

View check run for this annotation

Codecov / codecov/patch

Snowflake.Data/Core/Session/SFSession.cs#L313

Added line #L313 was not covered by tests
}

logger.Debug($"Session closed: {sessionId}");
Expand Down

0 comments on commit 4e2094b

Please sign in to comment.