Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.283 ·

Debug logger gains a switch to stop the default log file, not yet used

The debug logger can now turn off its default log file unless a log path or CLAUDE_CODE_DEBUG_LOGS_DIR is set, but nothing calls the switch yet

Group of 2 Use it now Nothing to try yet In Development
JSON All of v2.1.283
Use it nowTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
In DevelopmentKind: in v2.1.283,
What probably matters to youSection of the release

Unclear It was not ruled out that an outside app already uses this switch.

What

When debug mode is on, Claude Code writes a debug log file. Its rule for whether to write that file now has an extra condition:

  • writesFiles() now also needs one of three things: the default file is still enabled, an explicit log file path is set, or CLAUDE_CODE_DEBUG_LOGS_DIR is set.
  • A new disableDefaultFile() method turns off the default file. It starts enabled (defaultFile = !0).
  • In the 2.1.283 bundle, disableDefaultFile appears only where it is defined, and nothing calls it.

Why

In practice nothing changes for now: the default file stays enabled and debug logs are written as before. The switch would let something stop the default debug log file while still writing logs when you ask for a specific path.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt was not ruled out that an outside app already uses this switch.

See this entry in the whole of v2.1.283 →

Feedback