This commit is contained in:
@@ -633,7 +633,7 @@ namespace AyaNova
|
|||||||
_newLog.LogInformation($"Server test mode seeding, level is {ServerBootConfig.AYANOVA_SERVER_TEST_MODE_SEEDLEVEL}, tz offset is {ServerBootConfig.AYANOVA_SERVER_TEST_MODE_TZ_OFFSET}");
|
_newLog.LogInformation($"Server test mode seeding, level is {ServerBootConfig.AYANOVA_SERVER_TEST_MODE_SEEDLEVEL}, tz offset is {ServerBootConfig.AYANOVA_SERVER_TEST_MODE_TZ_OFFSET}");
|
||||||
AyaNova.Core.License.FetchKeyAsync(apiServerState, dbContext, _newLog, true, true).Wait();
|
AyaNova.Core.License.FetchKeyAsync(apiServerState, dbContext, _newLog, true, true).Wait();
|
||||||
var seed = new Util.Seeder();
|
var seed = new Util.Seeder();
|
||||||
seed.SeedDatabaseAsync(Seeder.Level.StringToSeedLevel(ServerBootConfig.AYANOVA_SERVER_TEST_MODE_SEEDLEVEL), ServerBootConfig.AYANOVA_SERVER_TEST_MODE_TZ_OFFSET,null,null).Wait();
|
seed.SeedDatabaseAsync(Seeder.Level.StringToSeedLevel(ServerBootConfig.AYANOVA_SERVER_TEST_MODE_SEEDLEVEL), ServerBootConfig.AYANOVA_SERVER_TEST_MODE_TZ_OFFSET, null, null).Wait();
|
||||||
// _newLog.LogInformation("Seeding completed");
|
// _newLog.LogInformation("Seeding completed");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@@ -654,6 +654,11 @@ namespace AyaNova
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
//Log schema version into server log (would only otherwise log if schema was out of date)
|
||||||
|
_newLog.LogInformation($"DB Schema version - {AyaNova.Util.AySchema.currentSchema}");
|
||||||
|
ServerBootConfig.BOOT_DIAGNOSTIC_INFO.Add("DB Schema version", AyaNova.Util.AySchema.currentSchema.ToString());
|
||||||
|
|
||||||
|
|
||||||
//Log the active user count so it's in the log record
|
//Log the active user count so it's in the log record
|
||||||
_newLog.LogInformation($"Active techs - {UserBiz.ActiveCountAsync().Result}");
|
_newLog.LogInformation($"Active techs - {UserBiz.ActiveCountAsync().Result}");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user