Skip to content

Fix: Remove console.log statements and implement debug logger utility #416

@0010capacity

Description

@0010capacity

기능 개요

프로덕션 빌드에서 불필요한 콘솔 로그 출력 제거 및 개발용 로거 유틸리티 도입

구현 상세

  • FileTreeIndex 및 전체 프로젝트의 console.log 제거 또는 주석 처리
  • 개발 모드에서만 동작하는 logger 유틸리티 생성
    • isDevelopment 플래그에 기반한 조건부 로깅
    • debug(), info(), warn(), error() 메서드 제공
    • localStorage의 DEBUG 플래그로 런타임 제어 가능
  • 프로덕션 빌드 시 로그 출력 완전 제거
  • 성능 모니터링이 필요한 부분은 별도 애널리틱스 라이브러리 활용

예상 효과

  • 프로덕션 환경에서 콘솔 노이즈 제거
  • 디버깅 시 필요한 로그만 선택적으로 표시
  • 번들 크기 감소 (minification 시)
  • 사용자 개인정보 보호 향상

관련 파일

  • src/components/FileTreeIndex.tsx (line 143-324)
  • src/utils/logger.ts (신규)
  • src/outliner/BlockComponent.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority:mediumMedium priority - important improvements

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions