Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ezraroi committed Sep 8, 2024
1 parent bbcd50f commit 16a0fa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Mundialito/DAL/MundialitoDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ protected override void OnConfiguring(DbContextOptionsBuilder options)
var connectionString = string.IsNullOrEmpty(_connectionString) ? appConfig.GetConnectionString("App") : _connectionString;
if (logger != null)
{
logger.LogInformation("_connectionString: " + _connectionString);
appConfig.GetSection("App").AsEnumerable().ToList().ForEach(kvp => logger.LogInformation("Key: {0}, Value: {1}", kvp.Key, kvp.Value));
appConfig.GetSection("ConnectionStrings").AsEnumerable().ToList().ForEach(kvp => logger.LogInformation("Key: {0}, Value: {1}", kvp.Key, kvp.Value));
logger.LogInformation("Using connection string: " + connectionString);
}
AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
Expand Down

0 comments on commit 16a0fa4

Please sign in to comment.