Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-834781: Remove log4net and delegate logging to consumers #1057

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
650bb43
SNOW-834781: Remove log4net and delegate logging to consumers
sfc-gh-ext-simba-lf Nov 9, 2024
f0484f6
SNOW-834781: Refactor/add tests
sfc-gh-ext-simba-lf Nov 9, 2024
83e56ef
Merge branch 'master' of https://github.com/snowflakedb/snowflake-con…
sfc-gh-ext-simba-lf Nov 9, 2024
0ab8c66
Set config from code
sfc-gh-ext-simba-lf Nov 12, 2024
15090b4
Use constant file names for tests
sfc-gh-ext-simba-lf Nov 14, 2024
1b80c55
Remove unused method
sfc-gh-ext-simba-lf Nov 18, 2024
1a0a0f6
Merge branch 'master' of https://github.com/snowflakedb/snowflake-con…
sfc-gh-ext-simba-lf Nov 19, 2024
00d0e39
Add tests for home directory tool
sfc-gh-ext-simba-lf Nov 19, 2024
1036d56
Re-add Easy Logging
sfc-gh-ext-simba-lf Nov 21, 2024
3f3a15c
Refactor original logger to simple logger
sfc-gh-ext-simba-lf Nov 21, 2024
188f82a
Add initial impl. for own Snowflake logger
sfc-gh-ext-simba-lf Nov 29, 2024
0ec8b4d
Merge branch 'master' of https://github.com/snowflakedb/snowflake-con…
sfc-gh-ext-simba-lf Nov 29, 2024
26ef937
Fix log
sfc-gh-ext-simba-lf Nov 29, 2024
1c7afd3
Add tests for new log functions
sfc-gh-ext-simba-lf Nov 30, 2024
1d4e732
Retrigger checks
sfc-gh-ext-simba-lf Nov 30, 2024
c1b8d5a
Retrigger checks
sfc-gh-ext-simba-lf Dec 2, 2024
2fe82b1
Refactor classes and tests
sfc-gh-ext-simba-lf Dec 3, 2024
7bb3f98
Rename log functions and add test for BeginScope
sfc-gh-ext-simba-lf Dec 4, 2024
f1fb9c2
Merge branch 'master' of https://github.com/snowflakedb/snowflake-con…
sfc-gh-ext-simba-lf Dec 4, 2024
c9d8d92
Refactor logger functions add logger pair class
sfc-gh-ext-simba-lf Dec 5, 2024
f0da3e7
Replace ILogger with logger pair
sfc-gh-ext-simba-lf Dec 5, 2024
7e8af5c
Fix format error with bracket
sfc-gh-ext-simba-lf Dec 5, 2024
d6090aa
Move masking secrets
sfc-gh-ext-simba-lf Dec 6, 2024
a7535dc
Fix typo
sfc-gh-ext-simba-lf Dec 6, 2024
26a5d53
Refactor SFLoggerPair
sfc-gh-ext-simba-lf Dec 6, 2024
247df19
Replace ILogger with SFLogger in tests
sfc-gh-ext-simba-lf Dec 6, 2024
44ab254
Remove unused package
sfc-gh-ext-simba-lf Dec 6, 2024
e1a97f5
Revert BOM
sfc-gh-ext-simba-lf Dec 7, 2024
7d4c4ae
Remove unused package and revert BOM
sfc-gh-ext-simba-lf Dec 7, 2024
9038aaa
Revert logger name
sfc-gh-ext-simba-lf Dec 7, 2024
d2f94f4
Revert logger name
sfc-gh-ext-simba-lf Dec 7, 2024
6affd0a
Revert logger name
sfc-gh-ext-simba-lf Dec 7, 2024
c4d358a
Revert BOM
sfc-gh-ext-simba-lf Dec 7, 2024
b9e74da
Revert to original
sfc-gh-ext-simba-lf Dec 7, 2024
956249e
Revert eof
sfc-gh-ext-simba-lf Dec 7, 2024
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Data.Common;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using Moq;
using NUnit.Framework;
using Snowflake.Data.Client;
Expand All @@ -17,7 +18,7 @@ namespace Snowflake.Data.Tests.IntegrationTests
public class ConnectionMultiplePoolsAsyncIT: SFBaseTestAsync
{
private readonly PoolConfig _previousPoolConfig = new PoolConfig();
private readonly SFLogger logger = SFLoggerFactory.GetLogger<SFConnectionIT>();
private readonly ILogger logger = SFLoggerFactory.GetCustomLogger<SFConnectionIT>();

[SetUp]
public new void BeforeTest()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using Snowflake.Data.Core.Session;
using Snowflake.Data.Log;
using Snowflake.Data.Tests.Util;
using Microsoft.Extensions.Logging;

namespace Snowflake.Data.Tests.IntegrationTests
{
Expand All @@ -20,7 +21,7 @@ namespace Snowflake.Data.Tests.IntegrationTests
class ConnectionPoolCommonIT : SFBaseTest
{
private readonly ConnectionPoolType _connectionPoolTypeUnderTest;
private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger<ConnectionPoolManager>();
private static readonly ILogger s_logger = SFLoggerFactory.GetCustomLogger<ConnectionPoolManager>();
private readonly PoolConfig _previousPoolConfig;

public ConnectionPoolCommonIT(ConnectionPoolType connectionPoolTypeUnderTest)
Expand All @@ -38,8 +39,8 @@ public ConnectionPoolCommonIT(ConnectionPoolType connectionPoolTypeUnderTest)
{
SnowflakeDbConnectionPool.SetPooling(true);
}
s_logger.Debug($"---------------- BeforeTest ---------------------");
s_logger.Debug($"Testing Pool Type: {SnowflakeDbConnectionPool.GetConnectionPoolVersion()}");
s_logger.LogDebug($"---------------- BeforeTest ---------------------");
s_logger.LogDebug($"Testing Pool Type: {SnowflakeDbConnectionPool.GetConnectionPoolVersion()}");
}

[TearDown]
Expand Down
11 changes: 6 additions & 5 deletions Snowflake.Data.Tests/IntegrationTests/SFBindTestIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
using System.Globalization;
using System.Collections.Generic;
using Snowflake.Data.Tests.Util;
using Microsoft.Extensions.Logging;

namespace Snowflake.Data.Tests.IntegrationTests
{

[TestFixture]
class SFBindTestIT : SFBaseTest
{
private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger<SFBindTestIT>();
private static readonly ILogger s_logger = SFLoggerFactory.GetCustomLogger<SFBindTestIT>();

[Test]
public void TestArrayBind()
Expand Down Expand Up @@ -905,7 +906,7 @@ public void TestDateTimeBinding(ResultFormat resultFormat, SFTableType tableType
var bindingThreshold = 65280; // when exceeded enforces bindings via file on stage
var smallBatchRowCount = 2;
var bigBatchRowCount = bindingThreshold / 2;
s_logger.Info(testCase);
s_logger.LogInformation(testCase);

using (IDbConnection conn = new SnowflakeDbConnection(ConnectionString))
{
Expand Down Expand Up @@ -944,7 +945,7 @@ public void TestDateTimeBinding(ResultFormat resultFormat, SFTableType tableType
var row = 0;
using (var select = conn.CreateCommand($"select {sql_columns} from {TableName} order by id"))
{
s_logger.Debug(select.CommandText);
s_logger.LogDebug(select.CommandText);
var reader = select.ExecuteReader();
while (reader.Read())
{
Expand Down Expand Up @@ -991,7 +992,7 @@ private void InsertSingleRecord(IDbConnection conn, string sqlInsert, DbType bin
}

// Act
s_logger.Info(sqlInsert);
s_logger.LogInformation(sqlInsert);
var rowsAffected = insert.ExecuteNonQuery();

// Assert
Expand Down Expand Up @@ -1030,7 +1031,7 @@ private void InsertMultipleRecords(IDbConnection conn, string sqlInsert, DbType
}

// Act
s_logger.Debug(sqlInsert);
s_logger.LogDebug(sqlInsert);
var rowsAffected = insert.ExecuteNonQuery();

// Assert
Expand Down
19 changes: 10 additions & 9 deletions Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
using Snowflake.Data.Log;
using Snowflake.Data.Tests.Mock;
using Snowflake.Data.Tests.Util;
using Microsoft.Extensions.Logging;

namespace Snowflake.Data.Tests.IntegrationTests
{

[TestFixture]
class SFConnectionIT : SFBaseTest
{
private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger<SFConnectionIT>();
private static readonly ILogger s_logger = SFLoggerFactory.GetCustomLogger<SFConnectionIT>();

[Test]
public void TestBasicConnection()
Expand Down Expand Up @@ -82,14 +83,14 @@
try
{
conn.Open();
s_logger.Debug("{appName}");
s_logger.LogDebug("{appName}");

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 86 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
Assert.Fail();

}
catch (SnowflakeDbException e)
{
// Expected
s_logger.Debug("Failed opening connection ", e);
s_logger.LogDebug("Failed opening connection ", e);

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 93 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
AssertIsConnectionFailure(e);
}

Expand Down Expand Up @@ -126,7 +127,7 @@
catch (SnowflakeDbException e)
{
// Expected
s_logger.Debug("Failed opening connection ", e);
s_logger.LogDebug("Failed opening connection ", e);

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 130 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
AssertIsConnectionFailure(e);
}

Expand All @@ -141,7 +142,7 @@
{
for (int i = 0; i < 2; ++i)
{
s_logger.Debug($"Running try #{i}");
s_logger.LogDebug($"Running try #{i}");
SnowflakeDbConnection snowflakeConnection = null;
try
{
Expand All @@ -167,7 +168,7 @@
{
for (int i = 0; i < 2; ++i)
{
s_logger.Debug($"Running try #{i}");
s_logger.LogDebug($"Running try #{i}");
SnowflakeDbConnection snowflakeConnection = null;
try
{
Expand Down Expand Up @@ -1558,7 +1559,7 @@
catch (SnowflakeDbException e)
{
// Expected
s_logger.Debug("Failed opening connection ", e);
s_logger.LogDebug("Failed opening connection ", e);

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 1562 in Snowflake.Data.Tests/IntegrationTests/SFConnectionIT.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
Assert.AreEqual(270001, e.ErrorCode); //Internal error
AssertIsConnectionFailure(e);
}
Expand Down Expand Up @@ -1867,7 +1868,7 @@
[TestFixture]
class SFConnectionITAsync : SFBaseTestAsync
{
private static SFLogger logger = SFLoggerFactory.GetLogger<SFConnectionITAsync>();
private static ILogger logger = SFLoggerFactory.GetCustomLogger<SFConnectionITAsync>();


[Test]
Expand Down Expand Up @@ -1897,7 +1898,7 @@

// Cancel the connection because it will never succeed since there is no
// connection_timeout defined
logger.Debug("connectionCancelToken.Cancel ");
logger.LogDebug("connectionCancelToken.Cancel ");
connectionCancelToken.Cancel();

try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Data;
using System.IO;
using System.Runtime.InteropServices;
using Microsoft.Extensions.Logging;
using Mono.Unix.Native;
using NUnit.Framework;
using Snowflake.Data.Client;
Expand All @@ -20,7 +21,7 @@ namespace Snowflake.Data.Tests.IntegrationTests
[TestFixture, NonParallelizable]
class SFConnectionWithTomlIT : SFBaseTest
{
private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger<SFConnectionIT>();
private static readonly ILogger s_logger = SFLoggerFactory.GetCustomLogger<SFConnectionIT>();

private static string s_workingDirectory;

Expand Down
11 changes: 6 additions & 5 deletions Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
using System.Data;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;

namespace Snowflake.Data.Tests.Mock
{
class MockSnowflakeDbConnection : SnowflakeDbConnection
{
private SFLogger logger = SFLoggerFactory.GetLogger<MockSnowflakeDbConnection>();
private ILogger logger = SFLoggerFactory.GetCustomLogger<MockSnowflakeDbConnection>();

private IMockRestRequester _restRequester;

Expand All @@ -31,7 +32,7 @@

public override void Open()
{
logger.Debug("Open Connection.");
logger.LogDebug("Open Connection.");
SetMockSession();
try
{
Expand All @@ -41,7 +42,7 @@
{
// Otherwise when Dispose() is called, the close request would timeout.
_connectionState = System.Data.ConnectionState.Closed;
logger.Error("Unable to connect", e);
logger.LogError("Unable to connect", e);

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 45 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
throw;
}
OnSessionEstablished();
Expand All @@ -61,14 +62,14 @@
// Exception from SfSession.OpenAsync
Exception sfSessionEx = previousTask.Exception;
_connectionState = ConnectionState.Closed;
logger.Error("Unable to connect", sfSessionEx);
logger.LogError("Unable to connect", sfSessionEx);

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net6.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net7.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net8.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, GCP)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AWS)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on MAC (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net7.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Linux (net8.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)

Check warning on line 65 in Snowflake.Data.Tests/Mock/MockSnowflakeDbConnection.cs

View workflow job for this annotation

GitHub Actions / Tests on Windows (net9.0, AZURE)

Number of parameters supplied in the logging message template do not match the number of named placeholders (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2017)
throw //sfSessionEx.InnerException;
new SnowflakeDbException(sfSessionEx, SFError.INTERNAL_ERROR, "Unable to connect");
}
if (previousTask.IsCanceled)
{
_connectionState = ConnectionState.Closed;
logger.Debug("Connection canceled");
logger.LogDebug("Connection canceled");
}
else
{
Expand Down
7 changes: 4 additions & 3 deletions Snowflake.Data.Tests/SFBaseTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*
* Copyright (c) 2012-2021 Snowflake Computing Inc. All rights reserved.
*/

Expand All @@ -14,6 +14,7 @@
using Snowflake.Data.Client;
using Snowflake.Data.Log;
using Snowflake.Data.Tests.Util;
using Microsoft.Extensions.Logging;

[assembly:LevelOfParallelism(10)]

Expand Down Expand Up @@ -57,7 +58,7 @@ public static void TearDownContext()
#endif
public class SFBaseTestAsync
{
private static readonly SFLogger s_logger = SFLoggerFactory.GetLogger<SFBaseTestAsync>();
private static readonly ILogger s_logger = SFLoggerFactory.GetCustomLogger<SFBaseTestAsync>();

private const string ConnectionStringWithoutAuthFmt = "scheme={0};host={1};port={2};" +
"account={3};role={4};db={5};schema={6};warehouse={7}";
Expand Down Expand Up @@ -118,7 +119,7 @@ protected void CreateOrReplaceTable(IDbConnection conn, string tableName, string
var columnsStr = string.Join(", ", columns);
var cmd = conn.CreateCommand();
cmd.CommandText = $"CREATE OR REPLACE {tableType} TABLE {tableName}({columnsStr}) {additionalQueryStr}";
s_logger.Debug(cmd.CommandText);
s_logger.LogDebug(cmd.CommandText);
cmd.ExecuteNonQuery();

_tablesToRemove.Add(tableName);
Expand Down
21 changes: 21 additions & 0 deletions Snowflake.Data.Tests/Snowflake.Data.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@
<ItemGroup>
<PackageReference Include="JunitXml.TestLogger" Version="3.1.12" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.14" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="RichardSzalay.MockHttp" Version="6.0.0" />
<PackageReference Include="Serilog" Version="4.0.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Settings.Xml" Version="1.1.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
<PackageReference Include="System.Text.RegularExpressions" Version="4.3.1" />
<PackageReference Include="Tomlyn.Signed" Version="0.17.0" />
Expand All @@ -36,6 +42,21 @@
<Reference Include="System.Net.Http.WebRequest" />
</ItemGroup>

<ItemGroup>
<None Update="log4net.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="TestSerilog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="TestLog4Net.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="TestNLog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>full</DebugType>
<DebugSymbols>True</DebugSymbols>
Expand Down
20 changes: 20 additions & 0 deletions Snowflake.Data.Tests/TestLog4Net.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="MyRollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="${TEST_LOG4NET_FILE_NAME}"/>
<appendToFile value="true"/>
<rollingStyle value="Size" />
<maximumFileSize value="10MB" />
<staticLogFileName value="true" />
<maxSizeRollBackups value="10" />
<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%date] [%t] [%-5level] [%logger] %message%newline" />
</layout>
</appender>

<root>
<level value="ALL" />
<appender-ref ref="MyRollingFileAppender" />
</root>
</log4net>
23 changes: 23 additions & 0 deletions Snowflake.Data.Tests/TestNLog.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema-->
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xsi:schemaLocation="NLog NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
internalLogLevel="Trace" >

<!-- the targets to write to -->
<targets>
<!-- write logs to file -->
<target xsi:type="File"
name="logfile"
fileName="${environment:TEST_NLOG_FILE_NAME}"
keepFileOpen="false"
concurrentWrites="true"
layout="${longdate}|${level}|${message} |${all-event-properties} ${exception:format=tostring}"/>
</targets>

<!-- rules to map from logger name to target -->
<rules>
<logger name="*" minlevel="Trace" writeTo="logfile" />
</rules>
</nlog>
15 changes: 15 additions & 0 deletions Snowflake.Data.Tests/TestSerilog.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<serilog>
<using>
<add name="Serilog.Sinks.File" />
</using>

<minimumLevel default="Verbose"></minimumLevel>

<writeTo>
<sink name="File">
<arg name="path" value="test_serilog.log" />
<arg name="shared" value="true" />
</sink>
</writeTo>
</serilog>
Loading
Loading