This commit is contained in:
2021-08-16 23:18:37 +00:00
parent 023dfa5ab6
commit b827ec1285
32 changed files with 122 additions and 105 deletions

View File

@@ -83,6 +83,11 @@ namespace AyaNova.Api.Controllers
log.LogInformation($"ServerState change request by user {UserNameFromContext.Name(HttpContext.Items)} from current state of \"{serverState.GetState().ToString()}\" to \"{desiredState.ToString()}-{state.Reason}\"");
if (desiredState == ApiServerState.ServerState.MigrateMode)
ServerBootConfig.MIGRATING = true;
else
ServerBootConfig.MIGRATING = false;
//Add a message if user didn't enter one so other users know why they can't login
if (string.IsNullOrWhiteSpace(state.Reason))
{