Skip to content

Rename DEBUG env option to CLAUDE_DEBUG #24

Closed as duplicate
Closed as duplicate

Description

@Defimatt

API call debug info is output to console. This should not be shown.

Verbose is set to false in /config

Anthropic:DEBUG:response 200 https://api.anthropic.com/v1/messages?beta=true GZ [Headers] {
  [Symbol(map)]: [Object: null prototype] {
    date: [ 'XXX' ],
    'content-type': [ 'text/event-stream; charset=utf-8' ],
    'transfer-encoding': [ 'chunked' ],
    connection: [ 'keep-alive' ],
    'cache-control': [ 'no-cache' ],
    'anthropic-ratelimit-requests-limit': [ '120' ],
    'anthropic-ratelimit-requests-remaining': [ '119' ],
    'anthropic-ratelimit-requests-reset': [ '2025-02-24T20:58:49Z' ],
    'anthropic-ratelimit-input-tokens-limit': [ '300000' ],
    'anthropic-ratelimit-input-tokens-remaining': [ '222000' ],
    'anthropic-ratelimit-input-tokens-reset': [ 'XXX' ],
    'request-id': [ 'XXX' ],
    'anthropic-organization-id': [ 'XXX' ],
    via: [ '1.1 google' ],
    'cf-cache-status': [ 'DYNAMIC' ],
    'x-robots-tag': [ 'none' ],
    server: [ 'cloudflare' ],
    'cf-ray': [ 'XXX' ]
  }
} PassThrough {
  _readableState: ReadableState {
    objectMode: false,
    highWaterMark: 16384,
    buffer: BufferList { head: [Object], tail: [Object], length: 1 },
    length: 349,
    pipes: [],
    flowing: null,
    ended: false,
    endEmitted: false,
    reading: true,
    constructed: true,
    sync: false,
    needReadable: true,
    emittedReadable: false,
    readableListening: false,
    resumeScheduled: false,
    errorEmitted: false,
    emitClose: true,
    autoDestroy: true,
    destroyed: false,
    errored: null,
    closed: false,
    closeEmitted: false,
    defaultEncoding: 'utf8',
    awaitDrainWriters: null,
    multiAwaitDrain: false,
    readingMore: false,
    dataEmitted: false,
    decoder: null,
    encoding: null,
    [Symbol(kPaused)]: null
  },
  _events: [Object: null prototype] {
    prefinish: [Function: prefinish],
    unpipe: [Function: onunpipe],
    error: [ [Function: onerror], [Function (anonymous)] ],
    close: [Function: bound onceWrapper] { listener: [Function: onclose] },
    finish: [Function: bound onceWrapper] { listener: [Function: onfinish] }
  },
  _eventsCount: 5,
  _maxListeners: undefined,
  _writableState: WritableState {
    objectMode: false,
    highWaterMark: 16384,
    finalCalled: false,
    needDrain: false,
    ending: false,
    ended: false,
    finished: false,
    destroyed: false,
    decodeStrings: true,
    defaultEncoding: 'utf8',
    length: 0,
    writing: false,
    corked: 0,
    sync: false,
    bufferProcessing: false,
    onwrite: [Function: bound onwrite],
    writecb: null,
    writelen: 0,
    afterWriteTickInfo: null,
    buffered: [],
    bufferedIndex: 0,
    allBuffers: true,
    allNoop: true,
    pendingcb: 0,
    constructed: true,
    prefinished: false,
    errorEmitted: false,
    emitClose: true,
    autoDestroy: true,
    errored: null,
    closed: false,
    closeEmitted: false,
    [Symbol(kOnFinished)]: []
  },
  allowHalfOpen: true,
  [Symbol(kCapture)]: false,
  [Symbol(kCallback)]: null
}

Activity

  1. killinsun commented on Feb 26, 2025

    @killinsun

    Claude code seems to be reading the DEBUG environment variable, and by setting it to false, I could bypass the issue.
    However, since this might conflict with .env files used by user's project, it would be preferable if Claude code used a prefixed variable like 'CLAUDE_CODE_DEBUG' instead.

  2. changed the title [-]API call debug info is output to console[/-] [+]Rename DEBUG env option to CLAUDE_DEBUG[/+] on Feb 26, 2025
  3. github-actions commented on Aug 10, 2025

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  4. locked as resolved and limited conversation to collaborators on Aug 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions