-
Notifications
You must be signed in to change notification settings - Fork 634
Closed
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
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
Labels
bugThis issue is a bug.This issue is a bug.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.