Rename DEBUG env option to CLAUDE_DEBUG

Resolved 💬 2 comments Opened Feb 24, 2025 by Defimatt Closed Mar 6, 2025

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
}

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗