Skip to content

[BUG] Critical: Infinite Winston Logger Loop Causing CPU 100% and File Explosion #10888

@asgare

Description

@asgare

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

The Problem:

  1. Winston logger was configured with file rotation ( I see numbered files like combined476.log)
  2. Some code I wrote likely had excessive logging in a tight loop (possibly in SMS queue processor or auth debugging)
  3. The rotation triggered constantly, creating hundreds of files
  4. This consumed 100% CPU writing logs faster than disk could handle

CRITICAL BUG REPORT

Issue: Claude Code generated infinite logging loop causing system freeze
Impact: CPU 100%, disk space exhaustion, required force-kill Node.js twice
When: November 3, 2025, around 10:45 AM

Evidence:

  • 5 rotated log files (combined476-480.log) @ 5.2MB each in 1 minute
  • auth-debug.log grew to 14.7MB
  • CPU pegged at 100%
  • Had to force-stop Node.js processes twice

What Should Happen?

Issue: Claude Code appears to have generated logging code with:

  1. No rate limiting on log writes
  2. Debug logging inside tight loops
  3. Winston file rotation misconfigured (maxsize/maxFiles not properly set)
  4. No disk space or CPU monitoring safeguards

Error Messages/Logs

Steps to Reproduce

Issue: Claude Code appears to have generated logging code with:

  1. No rate limiting on log writes
  2. Debug logging inside tight loops
  3. Winston file rotation misconfigured (maxsize/maxFiles not properly set)
  4. No disk space or CPU monitoring safeguards

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.31

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas reproHas detailed reproduction stepsperf:memoryplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions