error occurred while reprocess. capture_id: 30152, reason:Permission denied, user_id: 3615
Fix Plan: error occurred while reprocess. capture_id: 30152, reason:Permission denied, user_id: 3615
Changes#
tesla: app/operations/capture_operation.rb#
- What:
reinvoke_captures메서드(line 32)와reinvoke_singleshot_captures메서드(line 13)에서Cupix::Errors::PermissionDenied를 별도 rescue 절로 분리하여Cupix::Logger.warn으로 로깅 - Why: 권한 거부는 예상되는 운영 시나리오이므로
error레벨이 아닌warn레벨로 로깅해야 함. 현재rescue StandardError가 모든 예외를error로 로깅하여 불필요한 알림을 유발 - Lines: 13-15, 32-34
Acceptance Criteria#
-
Cupix::Errors::PermissionDenied가rescue StandardError보다 먼저 선언되어 있음 - PermissionDenied 발생 시
Cupix::Logger.warn으로 로깅됨 - 기존
rescue StandardError블록은 다른 에러에 대해 동일하게error레벨 로깅 유지 -
reinvoke_captures와reinvoke_singleshot_captures양쪽에 동일하게 적용됨 - Ruby syntax 유효
Tests#
- 기존 테스트: spec/operations/capture_operation_spec.rb (있는 경우)
- 신규 테스트: 불필요 (로그 레벨 변경만)