Skip to content

fix: replace raw print/debugPrint with structured logging#913

Open
NihalDR wants to merge 6 commits intoCCExtractor:mainfrom
NihalDR:contribution_v3_fix912_logging
Open

fix: replace raw print/debugPrint with structured logging#913
NihalDR wants to merge 6 commits intoCCExtractor:mainfrom
NihalDR:contribution_v3_fix912_logging

Conversation

@NihalDR
Copy link

@NihalDR NihalDR commented Mar 17, 2026

Changes made

  • added a centralized AppLogger utility with level-based methods (debug/info/warn/error)
  • added basic redaction for tokens, emails, and content URIs
  • replaced raw print usage in:
    • lib/app/utils/system_ringtone_service.dart
    • lib/app/data/providers/push_notifications.dart
    • lib/app/modules/timer/views/timer_animation.dart
  • stopped logging raw push token values and switched to safe status logs

Why

Reduces noisy logs and avoids leaking internal/sensitive values in production paths.

Fixes #912

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace raw print/debugPrint usage with structured, redacted logging

1 participant