🔇 Web Services API Log Control
This commit is contained in:
부모
5305f61a41
커밋
f2c4e0d14f
@ -102,7 +102,7 @@ public class ComplianceDataRangeReader extends BaseApiReader<ComplianceDto> {
|
|||||||
|
|
||||||
private List<ComplianceDto> callApiWithBatch() {
|
private List<ComplianceDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
String url = getApiPath();
|
String url = getApiPath();
|
||||||
log.debug("[{}] API 호출: {}", getReaderName(), url);
|
log.debug("[{}] API 호출: {}", getReaderName(), url);
|
||||||
|
|||||||
@ -95,7 +95,7 @@ public class AnchorageCallsRangeReader extends BaseApiReader<AnchorageCallsDto>
|
|||||||
*/
|
*/
|
||||||
private List<AnchorageCallsDto> callApiWithBatch() {
|
private List<AnchorageCallsDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
.uri(getApiPath(), uriBuilder -> uriBuilder
|
.uri(getApiPath(), uriBuilder -> uriBuilder
|
||||||
|
|||||||
@ -94,7 +94,7 @@ public class BerthCallsRangeReader extends BaseApiReader<BerthCallsDto> {
|
|||||||
*/
|
*/
|
||||||
private List<BerthCallsDto> callApiWithBatch() {
|
private List<BerthCallsDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
.uri(getApiPath(), uriBuilder -> uriBuilder
|
.uri(getApiPath(), uriBuilder -> uriBuilder
|
||||||
|
|||||||
@ -93,7 +93,7 @@ public class CurrentlyAtRangeReader extends BaseApiReader<CurrentlyAtDto> {
|
|||||||
*/
|
*/
|
||||||
private List<CurrentlyAtDto> callApiWithBatch() {
|
private List<CurrentlyAtDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
.uri(getApiPath(), uriBuilder -> uriBuilder
|
.uri(getApiPath(), uriBuilder -> uriBuilder
|
||||||
|
|||||||
@ -91,7 +91,7 @@ public class DestinationRangeReader extends BaseApiReader<DestinationDto> {
|
|||||||
*/
|
*/
|
||||||
private List<DestinationDto> callApiWithBatch() {
|
private List<DestinationDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
.uri(getApiPath(), uriBuilder -> uriBuilder
|
.uri(getApiPath(), uriBuilder -> uriBuilder
|
||||||
|
|||||||
@ -94,7 +94,7 @@ public class PortCallsRangeReader extends BaseApiReader<PortCallsDto> {
|
|||||||
*/
|
*/
|
||||||
private List<PortCallsDto> callApiWithBatch() {
|
private List<PortCallsDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
.uri(getApiPath(), uriBuilder -> uriBuilder
|
.uri(getApiPath(), uriBuilder -> uriBuilder
|
||||||
// 맵에서 파라미터 값을 동적으로 가져와 세팅
|
// 맵에서 파라미터 값을 동적으로 가져와 세팅
|
||||||
|
|||||||
@ -93,7 +93,7 @@ public class StsOperationRangeReader extends BaseApiReader<StsOperationDto> {
|
|||||||
*/
|
*/
|
||||||
private List<StsOperationDto> callApiWithBatch() {
|
private List<StsOperationDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
.uri(getApiPath(), uriBuilder -> uriBuilder
|
.uri(getApiPath(), uriBuilder -> uriBuilder
|
||||||
|
|||||||
@ -92,7 +92,7 @@ public class TerminalCallsRangeReader extends BaseApiReader<TerminalCallsDto> {
|
|||||||
*/
|
*/
|
||||||
private List<TerminalCallsDto> callApiWithBatch() {
|
private List<TerminalCallsDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
.uri(getApiPath(), uriBuilder -> uriBuilder
|
.uri(getApiPath(), uriBuilder -> uriBuilder
|
||||||
|
|||||||
@ -92,7 +92,7 @@ public class TransitsRangeReader extends BaseApiReader<TransitsDto> {
|
|||||||
*/
|
*/
|
||||||
private List<TransitsDto> callApiWithBatch() {
|
private List<TransitsDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
.uri(getApiPath(), uriBuilder -> uriBuilder
|
.uri(getApiPath(), uriBuilder -> uriBuilder
|
||||||
|
|||||||
@ -150,7 +150,7 @@ public class AnchorageCallsRepositoryImpl extends BaseJdbcRepository<AnchorageCa
|
|||||||
public void saveAll(List<AnchorageCallsEntity> entities) {
|
public void saveAll(List<AnchorageCallsEntity> entities) {
|
||||||
if (entities == null || entities.isEmpty()) return;
|
if (entities == null || entities.isEmpty()) return;
|
||||||
|
|
||||||
log.info("ShipMovement 저장 시작 = {}건", entities.size());
|
// log.info("ShipMovement 저장 시작 = {}건", entities.size());
|
||||||
batchInsert(entities);
|
batchInsert(entities);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,7 +147,7 @@ public class BerthCallsRepositoryImpl extends BaseJdbcRepository<BerthCallsEntit
|
|||||||
public void saveAll(List<BerthCallsEntity> entities) {
|
public void saveAll(List<BerthCallsEntity> entities) {
|
||||||
if (entities == null || entities.isEmpty()) return;
|
if (entities == null || entities.isEmpty()) return;
|
||||||
|
|
||||||
log.info("BerthCalls 저장 시작 = {}건", entities.size());
|
// log.info("BerthCalls 저장 시작 = {}건", entities.size());
|
||||||
batchInsert(entities);
|
batchInsert(entities);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -156,7 +156,7 @@ public class CurrentlyAtRepositoryImpl extends BaseJdbcRepository<CurrentlyAtEnt
|
|||||||
public void saveAll(List<CurrentlyAtEntity> entities) {
|
public void saveAll(List<CurrentlyAtEntity> entities) {
|
||||||
if (entities == null || entities.isEmpty()) return;
|
if (entities == null || entities.isEmpty()) return;
|
||||||
|
|
||||||
log.info("CurrentltAt 저장 시작 = {}건", entities.size());
|
// log.info("CurrentltAt 저장 시작 = {}건", entities.size());
|
||||||
batchInsert(entities);
|
batchInsert(entities);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -125,7 +125,7 @@ public class DestinationRepositoryImpl extends BaseJdbcRepository<DestinationEnt
|
|||||||
@Override
|
@Override
|
||||||
public void saveAll(List<DestinationEntity> entities) {
|
public void saveAll(List<DestinationEntity> entities) {
|
||||||
if (entities == null || entities.isEmpty()) return;
|
if (entities == null || entities.isEmpty()) return;
|
||||||
log.info("Destinations 저장 시작 = {}건", entities.size());
|
// log.info("Destinations 저장 시작 = {}건", entities.size());
|
||||||
batchInsert(entities);
|
batchInsert(entities);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -186,7 +186,7 @@ public class PortCallsRepositoryImpl extends BaseJdbcRepository<PortCallsEntity,
|
|||||||
public void saveAll(List<PortCallsEntity> entities) {
|
public void saveAll(List<PortCallsEntity> entities) {
|
||||||
if (entities == null || entities.isEmpty()) return;
|
if (entities == null || entities.isEmpty()) return;
|
||||||
|
|
||||||
log.info("ShipMovement 저장 시작 = {}건", entities.size());
|
// log.info("ShipMovement 저장 시작 = {}건", entities.size());
|
||||||
batchInsert(entities);
|
batchInsert(entities);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -147,7 +147,7 @@ public class StsOperationRepositoryImpl extends BaseJdbcRepository<StsOperationE
|
|||||||
public void saveAll(List<StsOperationEntity> entities) {
|
public void saveAll(List<StsOperationEntity> entities) {
|
||||||
if (entities == null || entities.isEmpty()) return;
|
if (entities == null || entities.isEmpty()) return;
|
||||||
|
|
||||||
log.info("StsOperation 저장 시작 = {}건", entities.size());
|
// log.info("StsOperation 저장 시작 = {}건", entities.size());
|
||||||
batchInsert(entities);
|
batchInsert(entities);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -144,7 +144,7 @@ public class TerminalCallsRepositoryImpl extends BaseJdbcRepository<TerminalCall
|
|||||||
public void saveAll(List<TerminalCallsEntity> entities) {
|
public void saveAll(List<TerminalCallsEntity> entities) {
|
||||||
if (entities == null || entities.isEmpty()) return;
|
if (entities == null || entities.isEmpty()) return;
|
||||||
|
|
||||||
log.info("TerminallCalls 저장 시작 = {}건", entities.size());
|
// log.info("TerminallCalls 저장 시작 = {}건", entities.size());
|
||||||
batchInsert(entities);
|
batchInsert(entities);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -103,7 +103,7 @@ public class TransitsRepositoryImpl extends BaseJdbcRepository<TransitsEntity, S
|
|||||||
public void saveAll(List<TransitsEntity> entities) {
|
public void saveAll(List<TransitsEntity> entities) {
|
||||||
if (entities == null || entities.isEmpty()) return;
|
if (entities == null || entities.isEmpty()) return;
|
||||||
|
|
||||||
log.info("Transits 저장 시작 = {}건", entities.size());
|
// log.info("Transits 저장 시작 = {}건", entities.size());
|
||||||
batchInsert(entities);
|
batchInsert(entities);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -100,7 +100,7 @@ public class RiskDataRangeReader extends BaseApiReader<RiskDto> {
|
|||||||
|
|
||||||
private List<RiskDto> callApiWithBatch() {
|
private List<RiskDto> callApiWithBatch() {
|
||||||
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
Map<String, String> params = batchDateService.getDateRangeWithTimezoneParams(getApiKey());
|
||||||
log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
// log.info("[{}] 요청 날짜 범위: {} → {}", getReaderName(), params.get("fromDate"), params.get("toDate"));
|
||||||
|
|
||||||
String url = getApiPath();
|
String url = getApiPath();
|
||||||
return webClient.get()
|
return webClient.get()
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user