Skip to content

Commit

Permalink
log connection string
Browse files Browse the repository at this point in the history
  • Loading branch information
meofiscoding committed Nov 16, 2023
1 parent c0841fd commit 4cb6bed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Identity.API/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@
{
options.ConfigureDbContext = builder => builder.UseNpgsql(configuration.GetConnectionString("IdentityDB") ?? configuration.GetConnectionString("AZURE_POSTGRESQL_CONNECTIONSTRING"),
sql => sql.MigrationsAssembly(migrationsAssembly));
// log connection string
Console.WriteLine($"Connection string: {configuration.GetConnectionString("IdentityDB") ?? configuration.GetConnectionString("AZURE_POSTGRESQL_CONNECTIONSTRING")}");
})
.AddConfigurationStore(options =>
{
Expand Down

0 comments on commit 4cb6bed

Please sign in to comment.