trafficmonitor init...2
This commit is contained in:
parent
9922a58114
commit
e9d1e3269d
@ -6,6 +6,7 @@ use App\Controllers\CommonController;
|
||||
use App\DTOs\CollectorDTO;
|
||||
use CodeIgniter\HTTP\RequestInterface;
|
||||
use CodeIgniter\HTTP\ResponseInterface;
|
||||
use CodeIgniter\Validation\Exceptions\ValidationException;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
class Collector extends CommonController
|
||||
@ -33,6 +34,8 @@ class Collector extends CommonController
|
||||
$entity = $this->service->create($this->createDTO($data));
|
||||
log_message('info', "트래픽 계산 및 저장 완료 (UID: {$trafficEntity->getPK()}), In: {$entity->getIn()} Kb/s / Out: {$entity->getOut()} Kb/s");
|
||||
}
|
||||
} catch (ValidationException $e) {
|
||||
log_message("error", "트래픽 계산 및 저장 검증오류:" . $e->getMessage());
|
||||
} catch (\Exception $e) {
|
||||
log_message('info', "트래픽 계산 및 저장 실패:{$e->getMessage()}");
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user