저장 실패시 상세 로그
This commit is contained in:
@@ -93,12 +93,14 @@ class TypeV2Handler
|
||||
// 기사 정보 추가 저장
|
||||
$articleInfoEtcParam['vr_sq'] = $vrSq;
|
||||
if (!$this->articleInfoEtcModel->replace($articleInfoEtcParam)) {
|
||||
CLI::write(CLI::color('❌ ArticleInfoEtc 저장 실패 :: ' . json_encode($articleInfoEtcParam), 'red'));
|
||||
throw new Exception("ArticleInfoEtc Insert 실패: " . json_encode($this->db->error()));
|
||||
}
|
||||
CLI::write(CLI::color('✅ ArticleInfoEtc 저장 성공', 'blue'));
|
||||
|
||||
// 수정 정보 입력 (있으면 update, 없으면 insert)
|
||||
if (!$this->modifyInfoModel->saveModifyInfo($vrSq, $modifyInfoParam)) {
|
||||
CLI::write(CLI::color('❌ ModifyInfo 저장 실패 :: ' . json_encode($modifyInfoParam), 'red'));
|
||||
throw new Exception("ModifyInfo 저장 실패: " . json_encode($this->db->error() . "sql: " . $this->modifyInfoModel->getLastQuery()));
|
||||
}
|
||||
CLI::write(CLI::color('✅ ModifyInfo 저장 성공', 'blue'));
|
||||
|
||||
Reference in New Issue
Block a user