mindesbunister
302511293c
feat: Add production logging gating (Phase 1, Task 1.1)
- Created logger utility with environment-based gating (lib/utils/logger.ts)
- Replaced 517 console.log statements with logger.log (71% reduction)
- Fixed import paths in 15 files (resolved comment-trapped imports)
- Added DEBUG_LOGS=false to .env
- Achieves 71% immediate log reduction (517/731 statements)
- Expected 90% reduction in production when deployed
Impact: Reduced I/O blocking, lower log volume in production
Risk: LOW (easy rollback, non-invasive)
Phase: Phase 1, Task 1.1 (Quick Wins - Console.log Production Gating)
Files changed:
- NEW: lib/utils/logger.ts (production-safe logging)
- NEW: scripts/replace-console-logs.js (automation tool)
- Modified: 15 lib/*.ts files (console.log → logger.log)
- Modified: .env (DEBUG_LOGS=false)
Next: Task 1.2 (Image Size Optimization)
2025-12-05 00:32:41 +01:00
..
2025-11-09 17:59:50 +01:00
2025-11-10 15:36:51 +01:00
2025-11-10 11:22:52 +01:00
2025-11-30 22:23:01 +01:00
2025-12-01 18:11:47 +01:00
2025-11-30 22:23:01 +01:00
2025-11-06 12:18:31 +01:00
2025-11-06 12:18:31 +01:00
2025-11-30 22:23:01 +01:00
2025-11-14 11:09:37 +01:00
2025-12-01 18:11:47 +01:00
2025-11-28 22:35:32 +01:00
2025-11-10 15:36:51 +01:00
2025-11-07 14:55:13 +01:00
2025-11-15 17:41:13 +01:00
2025-11-10 15:36:51 +01:00
2025-11-14 15:28:07 +01:00
2025-11-10 15:36:51 +01:00
2025-12-05 00:32:41 +01:00
2025-11-16 22:10:15 +01:00
2025-12-01 18:11:47 +01:00
2025-11-30 22:23:01 +01:00
2025-11-30 22:23:01 +01:00
2025-11-09 17:59:50 +01:00
2025-11-30 22:23:01 +01:00
2025-11-06 12:18:31 +01:00
2025-11-10 17:05:32 +01:00
2025-11-14 11:39:03 +01:00
2025-11-14 22:20:04 +01:00
2025-11-10 11:22:52 +01:00
2025-11-10 11:22:52 +01:00
2025-11-30 22:23:01 +01:00