serviceKey, response 로그 추가
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user