fail to post to issue service. reason: 'RestClient error' message: {"result":{"code":"ARG10002","mes
Fix Plan: fail to post to issue service - IssueType not found (ARG10002)
Changes#
tesla: app/services/cupix/issue_service.rb#
- What:
_post메서드의rescue RestClient::Exception블록(line 122-123)에서 응답 body를 파싱하여ARG10002("IssueType not found") 코드인 경우Cupix::Logger.warn으로 로그 레벨을 낮추고, 그 외 에러는 기존처럼Cupix::Logger.error로 유지 - Why: IssueType 매핑이 없는 error_code는 정상 상태이므로 error 레벨 로그가 불필요한 모니터링 노이즈를 발생시킴
- Lines: 122-123
Acceptance Criteria#
-
ARG10002응답 시Cupix::Logger.warn이 호출되고, 로그 메시지에 "issue type not found for error_code, skipping issue creation"이 포함됨 -
ARG10002가 아닌 다른 RestClient 에러는 기존처럼Cupix::Logger.error로 기록됨 - 응답 body 파싱 실패 시에도 기존 error 로깅으로 fallback됨
Tests#
- 기존 테스트: spec 파일 없음 (
spec/services/cupix/issue_service_spec.rb미존재) - 신규 테스트: 없음 (로그 레벨 변경만으로 기능 영향 없음)