Ver Fonte

log.debug -> log.info 로 변경

gagamel há 5 anos atrás
pai
commit
4c0a76fd39

+ 4 - 4
src/main/java/com/style24/core/biz/thirdparty/DataGoKrApi.java

@@ -46,10 +46,10 @@ public class DataGoKrApi {
 
 	@PostConstruct
 	public void init() {
-		log.debug("\n\n---- DataGoKrApi initialization started ----");
-		log.debug("apiUrl: [{}]", apiUrl);
-		log.debug("serviceKey: [{}]", serviceKey);
-		log.debug("\n--- DataGoKrApi initialization completed ----\n");
+		log.info("\n\n---- DataGoKrApi initialization started ----");
+		log.info("apiUrl: [{}]", apiUrl);
+		log.info("serviceKey: [{}]", serviceKey);
+		log.info("\n--- DataGoKrApi initialization completed ----\n");
 	}
 
 	/**

+ 3 - 3
src/main/java/com/style24/core/biz/thirdparty/KollusApi.java

@@ -58,9 +58,9 @@ public class KollusApi {
 
 	@PostConstruct
 	public void init() {
-		log.debug("\n\n---- CATENOID Kollus initialization started ----");
-		log.debug("apiUrl: [{}]", apiUrl);
-		log.debug("\n--- CATENOID Kollus initialization completed ----\n");
+		log.info("\n\n---- CATENOID Kollus initialization started ----");
+		log.info("apiUrl: [{}]", apiUrl);
+		log.info("\n--- CATENOID Kollus initialization completed ----\n");
 	}
 
 	/**

+ 5 - 5
src/main/java/com/style24/core/biz/thirdparty/NaverLowestPriceApi.java

@@ -46,11 +46,11 @@ public class NaverLowestPriceApi {
 
 	@PostConstruct
 	public void init() {
-		log.debug("\n\n---- NaverLowestPriceApi initialization started ----");
-		log.debug("apiUrl: [{}]", apiUrl);
-		log.debug("clientId: [{}]", clientId);
-		log.debug("clientSecret: [{}]", clientSecret);
-		log.debug("\n--- NaverLowestPriceApi initialization completed ----\n");
+		log.info("\n\n---- NaverLowestPriceApi initialization started ----");
+		log.info("apiUrl: [{}]", apiUrl);
+		log.info("clientId: [{}]", clientId);
+		log.info("clientSecret: [{}]", clientSecret);
+		log.info("\n--- NaverLowestPriceApi initialization completed ----\n");
 	}
 
 	/**

+ 9 - 10
src/main/java/com/style24/core/biz/thirdparty/SafetyKoreaApi.java

@@ -44,11 +44,11 @@ public class SafetyKoreaApi {
 
 	@PostConstruct
 	public void init() {
-		log.debug("\n\n---- SafetyKoreaApi initialization started ----");
-		log.debug("apiUrl: [{}]", apiUrl);
-		log.debug("apiDetailUrl: [{}]", apiDetailUrl);
-		log.debug("authKey: [{}]", authKey);
-		log.debug("\n--- SafetyKoreaApi initialization completed ----\n");
+		log.info("\n\n---- SafetyKoreaApi initialization started ----");
+		log.info("apiUrl: [{}]", apiUrl);
+		log.info("apiDetailUrl: [{}]", apiDetailUrl);
+		log.info("authKey: [{}]", authKey);
+		log.info("\n--- SafetyKoreaApi initialization completed ----\n");
 	}
 
 	/**
@@ -67,7 +67,7 @@ public class SafetyKoreaApi {
 		log.info("requestUrl: {}", requestUrl);
 		URI url = URI.create(requestUrl);
 
-		String responseJson = getExtracted( url);
+		String responseJson = getExtracted(url);
 
 		Gson gson = new Gson();
 		KCertifyNo kcNo = gson.fromJson(responseJson, KCertifyNo.class);
@@ -75,7 +75,7 @@ public class SafetyKoreaApi {
 		if (kcNo.getResultCode() != null && "2000".equals(kcNo.getResultCode())) { // 성공
 			result.set("certNum", kcNo.getResultData().iterator().next().getCertNum());
 			result.set("certDiv", kcNo.getResultData().iterator().next().getCertDiv());
-			result.set("certOrganName",  kcNo.getResultData().iterator().next().getCertOrganName());
+			result.set("certOrganName", kcNo.getResultData().iterator().next().getCertOrganName());
 			result.set("certState", kcNo.getResultData().iterator().next().getCertState());
 			result.set("certDt", kcNo.getResultData().iterator().next().getCertDate());
 			return result;
@@ -84,7 +84,6 @@ public class SafetyKoreaApi {
 		return result;
 	}
 
-
 	/**
 	 * KC인증번호로 조회
 	 * @param certNum - 인증번호
@@ -100,7 +99,7 @@ public class SafetyKoreaApi {
 		String requestUrl = apiDetailUrl + "?certNum=" + certNum;
 		URI url = URI.create(requestUrl);
 
-		String responseJson = getExtracted( url);
+		String responseJson = getExtracted(url);
 
 		Gson gson = new Gson();
 		KCertifyNoOnly kcNo = gson.fromJson(responseJson, KCertifyNoOnly.class);
@@ -126,7 +125,7 @@ public class SafetyKoreaApi {
 	 * @author eskim
 	 * @since 2020. 12. 07
 	 */
-	private String getExtracted( URI url) {
+	private String getExtracted(URI url) {
 
 		String responseJson = "";
 		// Header