chore: [eaccount] 디버그 로깅 제거

- 무한루프 버그 수정 완료 후 디버그용 로그 정리
This commit is contained in:
김보곤
2026-03-04 13:27:07 +09:00
parent 50bfaf160f
commit c5720e8c16

View File

@@ -373,7 +373,6 @@ public function transactions(Request $request): JsonResponse
->get();
// 전체 계좌 조회: 빈 값이면 모든 계좌의 거래 내역 조회
Log::debug("[Eaccount-Debug] transactions 분기 - bankAccountNum: '{$bankAccountNum}', 기간: {$startDate}~{$endDate}");
if (empty($bankAccountNum)) {
return $this->getAllAccountsTransactions($userId, $startDate, $endDate, $page, $limit, $savedData, $overrideData, $tenantId, $manualTransactions);
}
@@ -472,8 +471,6 @@ public function transactions(Request $request): JsonResponse
*/
private function getAllAccountsTransactions(string $userId, string $startDate, string $endDate, int $page, int $limit, $savedData = null, $overrideData = null, int $tenantId = 1, $manualTransactions = null): JsonResponse
{
Log::debug("[Eaccount-Debug] getAllAccountsTransactions 시작 - {$startDate}~{$endDate}");
// 먼저 계좌 목록 조회
$accountResult = $this->callSoap('GetBankAccountEx', ['AvailOnly' => 0]);
@@ -492,13 +489,11 @@ private function getAllAccountsTransactions(string $userId, string $startDate, s
$accountList = is_array($data->BankAccountEx) ? $data->BankAccountEx : [$data->BankAccountEx];
}
Log::debug('[Eaccount-Debug] 계좌 수: '.count($accountList));
$allLogs = [];
$totalDeposit = 0;
$totalWithdraw = 0;
foreach ($accountList as $idx => $acc) {
foreach ($accountList as $acc) {
if (! is_object($acc)) {
continue;
}
@@ -508,14 +503,10 @@ private function getAllAccountsTransactions(string $userId, string $startDate, s
continue;
}
Log::debug("[Eaccount-Debug] 계좌 #{$idx} 거래 조회 시작 - {$accNum}");
// 기간을 월별로 분할하여 SOAP API 호출 (긴 기간 에러 방지)
// 캐싱: 계좌별 bankName/bankCode 전달
$fetched = $this->fetchAccountTransactions($userId, $accNum, $startDate, $endDate, $tenantId, $acc->BankName ?? '', $acc->BankCode ?? '');
Log::debug("[Eaccount-Debug] 계좌 #{$idx} 거래 조회 완료 - ".count($fetched['logs'] ?? []).'건');
if (! empty($fetched['logs'])) {
$fakeData = new \stdClass;
$fakeData->BankAccountLogList = new \stdClass;