diff --git a/src/main/java/com/eactive/httpmockserver/ApiController.java b/src/main/java/com/eactive/httpmockserver/ApiController.java index 396656c..bed127f 100644 --- a/src/main/java/com/eactive/httpmockserver/ApiController.java +++ b/src/main/java/com/eactive/httpmockserver/ApiController.java @@ -71,12 +71,14 @@ public class ApiController { } ApiInfo api = apiService.findByUrlAndServiceValue(url, serviceValue); if (api == null) { + logger.info("Not found API(URL={}, ServiceValue={}", url, serviceValue); throw new ResponseStatusException(HttpStatus.NOT_FOUND, String.format("Not found API(URL=%s, ServiceValue=%s", url, serviceValue)); } if (StringUtils.isNotBlank(api.getMethod())) { if (!api.getMethod().equalsIgnoreCase(request.getMethod())) { + logger.info("Method({}) not allowe", request.getMethod()); throw new ResponseStatusException(HttpStatus.METHOD_NOT_ALLOWED, String.format("Method(%s) not allowed", request.getMethod())); }