diff --git a/app/Controllers/CLI/Collector.php b/app/Controllers/CLI/Collector.php index 4f2a04a..4226d23 100644 --- a/app/Controllers/CLI/Collector.php +++ b/app/Controllers/CLI/Collector.php @@ -37,9 +37,8 @@ class Collector extends CommonController $trafficService = service('trafficservice'); foreach ($trafficService->getEntities(['status' => STATUS['AVAILABLE']]) as $trafficEntity) { $data = $this->service->getCalculatedData($trafficEntity); - // Collector DB에 결과 저장 $entity = $this->service->create($this->createDTO($data)); - $message = "트래픽 계산 및 저장 완료 (UID: {$trafficEntity->getPK()}), In: {$entity->getIn()} Kb/s / Out: {$entity->getOut()} Kb/s"; + $message = "트래픽 계산 및 저장 완료 (UID: {$entity->getTrafficInfoUID()}), In: {$entity->getIn()} Kb/s / Out: {$entity->getOut()} Kb/s"; log_message('info', $message); echo $message . "\n"; }