error occurred while reprocess. capture_id: 30152, reason:Model has invalid state to reprocess, user
Fix Plan: error occurred while reprocess - Model has invalid state to reprocess
Changes#
tesla: app/operations/capture_operation.rb#
- What:
Cupix::Logger.error를Cupix::Logger.warn으로 변경 (line 33) - Why: Reprocess 거부는 비즈니스 로직에 의한 예상된 동작(state validation, permission denied)이므로 error가 아닌 warn으로 기록해야 함. Error monitoring 노이즈 감소 목적.
- Lines: 33
Acceptance Criteria#
-
app/operations/capture_operation.rb:33에서Cupix::Logger.error대신Cupix::Logger.warn사용 - 로그 메시지 형식은 기존과 동일하게 유지 (capture_id, reason, user_id 포함)
-
ruby -c app/operations/capture_operation.rbsyntax check 통과
Tests#
- 기존 테스트: spec/operations/capture_operation_spec.rb (존재 시)
- 신규 테스트: 없음 (로그 레벨 변경만이므로)