diff --git a/src/main/java/com/eactive/httpmockserver/ApiController.java b/src/main/java/com/eactive/httpmockserver/ApiController.java index da1ee9b..e41d4fa 100644 --- a/src/main/java/com/eactive/httpmockserver/ApiController.java +++ b/src/main/java/com/eactive/httpmockserver/ApiController.java @@ -63,6 +63,12 @@ public class ApiController { String url = request.getServletPath(); String serviceValue = assignServiceValue(httpEntity, request, url); + if (StringUtils.isNotBlank(serviceValue)) { + logger.info("--------------------------------------------------"); + logger.info("serviceCode={}", serviceValue); + logger.info("=================================================="); + logger.info("=================================================="); + } ApiInfo api = apiService.findByUrlAndServiceValue(url, serviceValue); if (api == null) { throw new ResponseStatusException(HttpStatus.NOT_FOUND, @@ -155,10 +161,6 @@ public class ApiController { int startIdx = NumberUtils.toInt(args[0]); int length = NumberUtils.toInt(args[1]); String serviceValue = msg.substring(startIdx, startIdx + length); - logger.info("--------------------------------------------------"); - logger.info("serviceCode={}", serviceValue); - logger.info("=================================================="); - logger.info("=================================================="); if (StringUtils.isBlank(serviceValue)) { throw new ResponseStatusException(HttpStatus.NOT_FOUND, String.format("sbi-std-servlet not found(URL=%s, ServiceKey=%s)", url, serviceKey));