Skip to content

🎥 Make videos programmatically with React

deprecate dumpBrowserLogs for logLevel

Jonny Burgerbb92263de519
diff --git a/packages/docs/docs/lambda/getcompositionsonlambda.md b/packages/docs/docs/lambda/getcompositionsonlambda.md
index 0b514ad2ee..539737c169 100644
--- a/packages/docs/docs/lambda/getcompositionsonlambda.md
+++ b/packages/docs/docs/lambda/getcompositionsonlambda.md
@@ -114,9 +114,11 @@ Specify a specific bucket name to be used. [This is not recommended](/docs/lambd
One of `verbose`, `info`, `warn`, `error`. Determines how much is being logged inside the Lambda function. Logs can be read through the CloudWatch URL that this function returns.
-### `dumpBrowserLogs?`<AvailableFrom v="3.3.83" />
+### ~~`dumpBrowserLogs?`~~
-If set to true, all `console` statements from the headless browser will be forwarded to the CloudWatch logs.
+_optional - default `false`, deprecated in v4.0_
+
+Deprecated in favor of [`logLevel`](#loglevel).
## Return value
diff --git a/packages/docs/docs/lambda/rendermediaonlambda.md b/packages/docs/docs/lambda/rendermediaonlambda.md
index 1d08a2a9d8..8d166cf090 100644
--- a/packages/docs/docs/lambda/rendermediaonlambda.md
+++ b/packages/docs/docs/lambda/rendermediaonlambda.md
@@ -329,11 +329,11 @@ One of `verbose`, `info`, `warn`, `error`. Determines how much is being logged i
If the `logLevel` is set to `verbose`, the Lambda function will not clean up artifacts, to aid debugging. Do not use it unless you are debugging a problem.
-### `dumpBrowserLogs?`
+### ~~`dumpBrowserLogs?`~~
-_optional, available from v3.3.83_
+_optional - default `false`, deprecated in v4.0_
-If set to true, all `console` statements from the headless browser will be forwarded to the CloudWatch logs.
+Deprecated in favor of [`logLevel`](#loglevel).
## Return value
diff --git a/packages/docs/docs/lambda/renderstillonlambda.md b/packages/docs/docs/lambda/renderstillonlambda.md
index 25fcd970f0..aa8470a0bf 100644
--- a/packages/docs/docs/lambda/renderstillonlambda.md
+++ b/packages/docs/docs/lambda/renderstillonlambda.md
@@ -204,11 +204,11 @@ _optional_
One of `verbose`, `info`, `warn`, `error`. Determines how much is being logged inside the Lambda function. Logs can be read through the CloudWatch URL that this function returns.
-### `dumpBrowserLogs?`
+### ~~`dumpBrowserLogs?`~~
-_optional, available since v3.3.83_
+_optional - default `false`, deprecated in v4.0_
-If set to true, all `console` statements from the headless browser will be forwarded to the CloudWatch logs.
+Deprecated in favor of [`logLevel`](#loglevel).
## Return value
diff --git a/packages/lambda/src/api/get-compositions-on-lambda.ts b/packages/lambda/src/api/get-compositions-on-lambda.ts
index 943a356109..01443853be 100644
--- a/packages/lambda/src/api/get-compositions-on-lambda.ts
+++ b/packages/lambda/src/api/get-compositions-on-lambda.ts
@@ -16,6 +16,9 @@ export type GetCompositionsOnLambdaInput = {
logLevel?: LogLevel;
timeoutInMilliseconds?: number;
forceBucketName?: string;
+ /**
+ * @deprecated in favor of `logLevel`: true
+ */
dumpBrowserLogs?: boolean;
};
@@ -32,7 +35,6 @@ export type GetCompositionsOnLambdaOutput = AnyCompMetadata[];
* @param params.logLevel The log level of the Lambda function
* @param params.timeoutInMilliseconds The timeout of the Lambda function
* @param params.chromiumOptions The options to pass to Chromium
- * @param params.dumpBrowserLogs Whether to print browser logs to CloudWatch
* @returns The compositions
*/
export const getCompositionsOnLambda = async ({
diff --git a/packages/lambda/src/api/render-media-on-lambda.ts b/packages/lambda/src/api/render-media-on-lambda.ts
index 0542b8bf6b..ca59f8419d 100644
--- a/packages/lambda/src/api/render-media-on-lambda.ts
+++ b/packages/lambda/src/api/render-media-on-lambda.ts
@@ -59,6 +59,9 @@ export type RenderMediaOnLambdaInput = {
rendererFunctionName?: string | null;
forceBucketName?: string;
audioCodec?: AudioCodec | null;
+ /**
+ * @deprecated in favor of `logLevel`: true
+ */
dumpBrowserLogs?: boolean;
};
@@ -86,7 +89,6 @@ export type RenderMediaOnLambdaOutput = {
* @param params.maxRetries How often rendering a chunk may fail before the media render gets aborted. Default "1"
* @param params.logLevel Level of logging that Lambda function should perform. Default "info".
* @param params.webhook Configuration for webhook called upon completion or timeout of the render.
- * @param params.dumpBrowserLogs Whether to print browser logs to CloudWatch
* @returns {Promise<RenderMediaOnLambdaOutput>} See documentation for detailed structure
*/
diff --git a/packages/lambda/src/api/render-still-on-lambda.ts b/packages/lambda/src/api/render-still-on-lambda.ts
index eadd6f54bf..068c0a50ef 100644
--- a/packages/lambda/src/api/render-still-on-lambda.ts
+++ b/packages/lambda/src/api/render-still-on-lambda.ts
@@ -37,6 +37,9 @@ export type RenderStillOnLambdaInput = {
forceWidth?: number | null;
forceHeight?: number | null;
forceBucketName?: string;
+ /**
+ * @deprecated Renamed to `dumpBrowserLogs`
+ */
dumpBrowserLogs?: boolean;
};
@@ -63,7 +66,6 @@ export type RenderStillOnLambdaOutput = {
* @param params.maxRetries How often rendering a chunk may fail before the video render gets aborted.
* @param params.frame Which frame should be used for the still image. Default 0.
* @param params.privacy Whether the item in the S3 bucket should be public. Possible values: `"private"` and `"public"`
- * @param params.dumpBrowserLogs Whether to print browser logs to CloudWatch.
* @returns {Promise<RenderStillOnLambdaOutput>} See documentation for exact response structure.
*/