Related Area
Frontend
Is there an existing issue for this?
Describe the bug
Production source code mein 60+ files mein console.log(), console.error(), aur console.warn() statements bina DEV guard ke hain.
Iska matlab ye logs production builds mein bhi run hote hain, jo:
- App performance degrade karta hai (especially Android)
- Sensitive data leak ho sakti hai (FCM tokens, API responses, user data)
- Sentry jaise crash reporters mein unnecessary noise create karta hai
Affected files include:
- src/components/ArticleCard.tsx (15+ unguarded logs)
- src/components/CreatePlaylist.tsx
- src/screens/NotificationPreferencesScreen.tsx
- src/hooks/useGetAllPodcasts.ts
- ...and 55+ more files
Expected behavior
All console statements should be wrapped with DEV guard so they only run in development builds:
// ❌ Current (runs in production too)
console.log('Article like success', data.likeStatus);
// ✅ Expected (only runs in dev)
if (DEV) console.log('Article like success', data.likeStatus);
Add ScreenShots
No response
What browsers are you seeing the problem on?
No response
Record
Related Area
Frontend
Is there an existing issue for this?
Describe the bug
Production source code mein 60+ files mein console.log(), console.error(), aur console.warn() statements bina DEV guard ke hain.
Iska matlab ye logs production builds mein bhi run hote hain, jo:
Affected files include:
Expected behavior
All console statements should be wrapped with DEV guard so they only run in development builds:
// ❌ Current (runs in production too)
console.log('Article like success', data.likeStatus);
// ✅ Expected (only runs in dev)
if (DEV) console.log('Article like success', data.likeStatus);
Add ScreenShots
No response
What browsers are you seeing the problem on?
No response
Record