This commit is contained in:
2019-10-23 00:25:55 +00:00
parent 26acea7415
commit d1a7b71f60

View File

@@ -376,7 +376,7 @@ namespace AyaNova.Api.Controllers
[HttpGet("exception")]
public ActionResult GetException()
{
log.LogCritical("Widget::getexception->CRITICAL LOG TEST");
log.LogInformation("Widget::getexception-> Test exception and log from controller test");
if (!serverState.IsOpen)
return StatusCode(503, new ApiErrorResponse(ApiErrorCode.API_CLOSED, null, serverState.Reason));
throw new System.NotSupportedException("Test exception from widget controller");