This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user