cfmgrv4 init...4
This commit is contained in:
parent
1b34e1507a
commit
c0077ccb6e
@ -78,7 +78,9 @@ class AuditLogService extends CloudflareService
|
|||||||
|
|
||||||
log_message("notice", "\n----------Account {$account_entity->getTitle()}의 AuditLog 처리 시작-----------");
|
log_message("notice", "\n----------Account {$account_entity->getTitle()}의 AuditLog 처리 시작-----------");
|
||||||
try {
|
try {
|
||||||
$endpoint = sprintf("accounts/%s/audit_logs?since=%s", $account_entity->getPK(), date("Y-m-d"));
|
// 오늘 날짜의 ISO 8601 형식 문자열 생성
|
||||||
|
$today = date('Y-m-d') . 'T00:00:00+00:00';
|
||||||
|
$endpoint = sprintf("accounts/%s/audit_logs?since=%s", $account_entity->getPK(), $today);
|
||||||
log_message("debug", "Auditlog Endpoint: " . $endpoint);
|
log_message("debug", "Auditlog Endpoint: " . $endpoint);
|
||||||
$response = $this->getMySocket()->get($endpoint);
|
$response = $this->getMySocket()->get($endpoint);
|
||||||
$body = json_decode($response->getBody());
|
$body = json_decode($response->getBody());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user