From 061c1d49d885c298114181cea3039ed9cc56b996 Mon Sep 17 00:00:00 2001 From: cha Date: Fri, 30 May 2025 09:47:51 +0900 Subject: [PATCH] =?UTF-8?q?=EC=97=91=EC=85=80=EB=8B=A4=EC=9A=B4=EB=A1=9C?= =?UTF-8?q?=EB=93=9C=20debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qcast/biz/estimate/EstimateService.java | 3 +++ .../biz/pwrGnrSimulation/PwrGnrSimService.java | 13 ++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java index 20d63b8a..9fdcc8d7 100644 --- a/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java +++ b/src/main/java/com/interplug/qcast/biz/estimate/EstimateService.java @@ -1490,6 +1490,7 @@ public class EstimateService { pwrGnrSimResponse.setGuideInfo(pwrGnrSimGuideInfo.getData()); } } catch (Exception e) { + log.error(e.toString()); } } @@ -1507,6 +1508,7 @@ public class EstimateService { byte[] drawingImg1 = Util.toByteArray(imageInputStream); estimateResponse.setDrawingImg1(drawingImg1); } + log.debug("url1 ::: {}", url); // File file = new File(drawingDirPath + File.separator + baseDrawingImgName + "_1.png"); // if (file.exists()) { // InputStream imageInputStream = @@ -1524,6 +1526,7 @@ public class EstimateService { byte[] drawingImg2 = Util.toByteArray(imageInputStream2); estimateResponse.setDrawingImg2(drawingImg2); } + log.debug("url2 ::: {}", url2); // file = new File(drawingDirPath + File.separator + baseDrawingImgName + "_2.png"); // if (file.exists()) { // InputStream imageInputStream2 = diff --git a/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java b/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java index e4910649..c75fd2dc 100644 --- a/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java +++ b/src/main/java/com/interplug/qcast/biz/pwrGnrSimulation/PwrGnrSimService.java @@ -280,7 +280,8 @@ public class PwrGnrSimService { try { pwrGnrSimRes = this.calcResults(pwrGnrSimReq, roofLength); } catch (Exception e) { - e.printStackTrace(); + log.error(e.toString()); + //e.printStackTrace(); } // DecimalFormat 객체 생성 @@ -497,7 +498,9 @@ public class PwrGnrSimService { } // 결과 확인용 - System.err.println("hatsudenryou_all 결과 ::: " + Arrays.toString(hatsudenryou_all)); + //System.err.println("hatsudenryou_all 결과 ::: " + Arrays.toString(hatsudenryou_all)); + log.debug("hatsudenryou_all ::: " + Arrays.toString(hatsudenryou_all)); + // System.err.println("hatsudenryou_all_snow 결과 ::: " + // Arrays.toString(hatsudenryou_all_snow)); // System.err.println( @@ -615,7 +618,7 @@ public class PwrGnrSimService { double[] peakcutResult = new double[2]; peakcutResult[0] = amp_peakcut_result; peakcutResult[1] = Math.min(watt_peakcut_result, amp_peakcut_result); - + log.debug("peakcutResult ::: {}", peakcutResult); return peakcutResult; } @@ -1183,13 +1186,13 @@ public class PwrGnrSimService { i++; } - log.error(Arrays.toString(IsbyTotal)); + log.debug(Arrays.toString(IsbyTotal)); // 직달, 산란, 지면 반사를 매월 합계 for (int m = 0; m < 12; m++) { shamenNissha[m] = IsbyTotal[m] + IbbyTotal[m] + IrbyTotal[m]; } } - + log.debug("shamenNissha ::: {}", shamenNissha); return shamenNissha; }