Add logging record

This commit is contained in:
ngfrolov 2024-02-05 10:38:57 +05:00
parent 1b01e88040
commit e409bd4405
Signed by untrusted user who does not match committer: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -10,6 +10,8 @@ namespace AsbCloudDb
{
public static void EnsureCreatedAndMigrated(this DatabaseFacade db)
{
var connectionString = db.GetConnectionString();
Trace.TraceInformation($"connectionString: {connectionString}");
db.SetCommandTimeout(TimeSpan.FromMinutes(5));
if (db.EnsureCreated())
{