Synchronous logging blocks event loop in production
warningperformanceUpdated Feb 6, 2026(via Exa)
Sources
Technologies:
How to detect:
Using console.log() or console.error() in production causes synchronous blocking when destination is a terminal or file, degrading performance under load
Recommended action:
Replace console.log/console.error with asynchronous logging library like Pino (fastest, 10,000+ logs/sec) or Winston (versatile). Use JSON format for machine-readable logs. Configure severity levels (error, warn, info, debug) and sanitize sensitive data