Skip to content

StartLiveTailCommand is logging the stream to the console without a way to disable this behavior. #7070

@ivands

Description

@ivands

Checkboxes for prior research

Describe the bug

StartLiveTailCommand is logging the stream results to the console without a way to disable this behavior.

Regression Issue

  • Select this option if this issue appears to be a regression.

SDK version number

@aws-sdk/[email protected]

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v22.12.0

Reproduction Steps

Run this code:
And log some stuff to the log group.

const client = new CloudWatchLogsClient({
  credentials,
  region,
  // I tried to disable the default logger.
  logger: {
    trace: () => {},
    info: () => {},
    debug: () => {},
    error: () => {},
    warn: () => {},
  },
})

const command = new StartLiveTailCommand({
  logGroupIdentifiers: ['YOUR_LOG_GROUP_ARN'],
})

const abort = new AbortController()
const response = await client.send(command, { abortSignal: abort.signal })

for await (const event of response.responseStream) {}

Observed Behavior

The SDK is logging the stream results to the console.
My guess is that someone left a debugging console.log hanging around.

Expected Behavior

There should be no logs.

Possible Solution

Remove the console.log from the lib

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions