This commit is contained in:
2020-08-12 17:50:53 +00:00
parent e908868ed5
commit c065a4a3d5
6 changed files with 64 additions and 57 deletions

View File

@@ -129,7 +129,7 @@ namespace AyaNova.Api.Controllers
if (!Authorized.HasModifyRole(HttpContext.Items, AyaType.ServerState))
return StatusCode(403, new ApiNotAuthorizedResponse());
log.LogInformation($"Server shut down requested by user {UserNameFromContext.Name(HttpContext.Items)}, server shutting down now...");
log.LogInformation($"### Server shut down requested by user {UserNameFromContext.Name(HttpContext.Items)}, triggering shut down event now...");
_appLifetime.StopApplication();
return Accepted();