cfmgrv4 init...2

This commit is contained in:
최준흠 2024-10-11 20:01:49 +09:00
parent 21809f5acf
commit e9c77cf39b

View File

@ -52,7 +52,7 @@ class Cloudflare extends BaseController
public function reload(mixed $uid = false): void public function reload(mixed $uid = false): void
{ {
//Transaction Start //Transaction Start
$this->_db->transStart(); // $this->_db->transStart();
try { try {
$auths = $this->auth_process($uid); $auths = $this->auth_process($uid);
foreach ($auths as $auth) { foreach ($auths as $auth) {
@ -67,10 +67,10 @@ class Cloudflare extends BaseController
$this->record_process($zone); $this->record_process($zone);
} }
log_message("notice", "Reload 작업을 완료하였습니다."); log_message("notice", "Reload 작업을 완료하였습니다.");
$this->_db->transCommit(); // $this->_db->transCommit();
} catch (\Exception $e) { } catch (\Exception $e) {
//Transaction Rollback //Transaction Rollback
$this->_db->transRollback(); // $this->_db->transRollback();
log_message( log_message(
"error", "error",
"Reload 작업을 실패하였습니다.\n--------------\n" . "Reload 작업을 실패하였습니다.\n--------------\n" .