ES /docs

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::PermissionDeniedrescue StandardError보다 먼저 선언되어 있음
  • PermissionDenied 발생 시 Cupix::Logger.warn으로 로깅됨
  • 기존 rescue StandardError 블록은 다른 에러에 대해 동일하게 error 레벨 로깅 유지
  • reinvoke_capturesreinvoke_singleshot_captures 양쪽에 동일하게 적용됨
  • Ruby syntax 유효

Tests#

  • 기존 테스트: spec/operations/capture_operation_spec.rb (있는 경우)
  • 신규 테스트: 불필요 (로그 레벨 변경만)