Skip to content

Commit

Permalink
Remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceredron committed Aug 7, 2024
1 parent e676ecb commit 5671e88
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Altinn.Broker.Persistence/DatabaseConnectionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ public DatabaseConnectionProvider(IOptions<DatabaseOptions> databaseOptions, ILo

public async Task<NpgsqlConnection> GetConnectionAsync()
{
var stopwatch = System.Diagnostics.Stopwatch.StartNew();
await EnsureValidDataSource();
var connection = await _dataSource.OpenConnectionAsync();
_logger.LogWarning("DB Connection milliseconds: {time}", stopwatch.ElapsedMilliseconds);
return connection;
}

Expand Down

0 comments on commit 5671e88

Please sign in to comment.