Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 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 Internal Changes
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
Internal ChangesKind: in v2.1.283,
What probably matters to youSection of the release

Unclear Nothing in this build was found that switches the default file off, so this may have no effect yet.

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.

Read from
Names in the bundleCLAUDE_CODE_DEBUG_LOGS_DIR
What the documentation says
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up CLAUDE_CODE_DEBUG_LOGS_DIR, on CLI reference. | `--debug-file <path>` | Write debug logs to a specific file path. Implicitly enables debug mode. Takes precedence over `CLAUDE_CODE_DEBUG_LOGS_DIR` | `claude --debug-file /tmp/claude-debug.log` | cli-reference see the edit
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 doubtNothing in this build was found that switches the default file off, so this may have no effect yet.
Anthropic's documentation agreesAnthropic's documentation has since written up CLAUDE_CODE_DEBUG_LOGS_DIR, on CLI reference.

See this entry in the whole of v2.1.283 →

Feedback