This commit is contained in:
2021-11-26 20:08:04 +00:00
parent 590e0a1b58
commit b6deb38cae
4 changed files with 26 additions and 24 deletions

View File

@@ -66,16 +66,18 @@ namespace AyaNova
return;
}
try
{
FileUtil.EnsureUserAndUtilityFoldersExistAndAreNotIdentical();
}
catch (Exception ex)
{
Console.WriteLine($"Unable to locate or create server file folders error was: {ex.Message}");
return;
}
// "AYANOVA_FOLDER_USER_FILES":"%programdata\\ayanova\\userfiles",
// "":"%programdata\\ayanova\\backupfiles",
// "AYANOVA_LOG_LEVEL": "Info",
// "AYANOVA_LOG_PATH":"%programdata\\ayanova\\"
//Human readable config output to console for diagnosis in case server wont' start
var AyaNovaConfig = config.AsEnumerable().Where(z => z.Key.StartsWith("AYANOVA") && z.Key != "AYANOVA_JWT_SECRET" && z.Key != "AYANOVA_SET_SUPERUSER_PW").Select(z => z.Key + "=" + z.Value).ToList();
var DiagConfig = string.Join(",", AyaNovaConfig);
DiagConfig = DbUtil.PasswordRedactedConnectionString(DiagConfig);
@@ -87,6 +89,8 @@ namespace AyaNova
#region Initialize Logging
//NOTE: there is a logging issue that breaks all this with .net 3.1 hostbuilder vs webhostbuilder but webhostbuilder will be deprecated so we need to work around it
//the discussion about that is here: https://github.com/aspnet/AspNetCore/issues/9337