This commit is contained in:
@@ -78,11 +78,11 @@ namespace AyaNova
|
||||
//parse the connection string properly
|
||||
DbUtil.ParseConnectionString(_log, _connectionString);
|
||||
|
||||
//Test for server
|
||||
//Will retry 10 times every 3 seconds for a total of 30 seconds
|
||||
if (!DbUtil.DatabaseServerExists(_log, "BOOT: waiting for db server"))
|
||||
//Probe for database server
|
||||
//Will retry every 10 seconds for up to 5 minutes before bailing
|
||||
if (!DbUtil.DatabaseServerExists(_log, "BOOT: waiting for db server "))
|
||||
{
|
||||
var err = $"BOOT: E1000 - AyaNova can't connect to the database server after trying for 30 seconds (connection string is:\"{DbUtil.DisplayableConnectionString}\")";
|
||||
var err = $"BOOT: E1000 - AyaNova can't connect to the database server after trying for 5 minutes (connection string is:\"{DbUtil.DisplayableConnectionString}\")";
|
||||
_log.LogCritical(err);
|
||||
throw new System.ApplicationException(err);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user