🎥 Make videos programmatically with React
remove dumpBrowserLogs in favor of logLevel
Jonny Burgerbf10eb127c0b
diff --git a/packages/cloudrun/src/api/render-media-on-cloudrun.ts b/packages/cloudrun/src/api/render-media-on-cloudrun.tsindex eb40f8b007..228c77fa01 100644--- a/packages/cloudrun/src/api/render-media-on-cloudrun.ts+++ b/packages/cloudrun/src/api/render-media-on-cloudrun.ts@@ -60,7 +60,6 @@ export type RenderMediaOnCloudrunInput = {forceHeight?: number | null;logLevel?: LogLevel;delayRenderTimeoutInMilliseconds?: number;- dumpBrowserLogs?: boolean;concurrency?: number | string | null;enforceAudioTrack?: boolean;preferLossless?: boolean;@@ -99,7 +98,6 @@ export type RenderMediaOnCloudrunInput = {* @param params.forceHeight Overrides default composition height.* @param params.logLevel Level of logging that Cloud Run service should perform. Default "info".* @param params.delayRenderTimeoutInMilliseconds A number describing how long the render may take to resolve all delayRender() calls before it times out.- * @param params.dumpBrowserLogs If set to true, all `console` statements from the headless browser will be forwarded to the Cloud Logging in GCP.* @param params.concurrency By default, each Cloud Run service renders with concurrency 1 (one open browser tab). You may use the option to customize this value.* @param params.enforceAudioTrack Render a silent audio track if there wouldn't be any otherwise.* @param params.preferLossless Uses a lossless audio codec, if one is available for the codec. If you set audioCodec, it takes priority over preferLossless.@@ -137,7 +135,6 @@ export const renderMediaOnCloudrun = async ({forceHeight,logLevel,delayRenderTimeoutInMilliseconds,- dumpBrowserLogs,concurrency,enforceAudioTrack,preferLossless,@@ -155,11 +152,6 @@ export const renderMediaOnCloudrun = async ({region,});- const verbose = RenderInternals.isEqualOrBelowLogLevel(- logLevel ?? 'info',- 'verbose'- );-const data: CloudRunPayloadType = {composition,serveUrl,@@ -189,7 +181,6 @@ export const renderMediaOnCloudrun = async ({logLevel: logLevel ?? 'info',delayRenderTimeoutInMilliseconds:delayRenderTimeoutInMilliseconds ?? RenderInternals.DEFAULT_TIMEOUT,- dumpBrowserLogs: dumpBrowserLogs ?? verbose,concurrency: concurrency ?? null,enforceAudioTrack: enforceAudioTrack ?? false,preferLossless: preferLossless ?? false,diff --git a/packages/cloudrun/src/api/render-still-on-cloudrun.ts b/packages/cloudrun/src/api/render-still-on-cloudrun.tsindex dda507aaae..781c99f50d 100644--- a/packages/cloudrun/src/api/render-still-on-cloudrun.ts+++ b/packages/cloudrun/src/api/render-still-on-cloudrun.ts@@ -35,7 +35,6 @@ export type RenderStillOnCloudrunInput = {forceHeight?: number | null;logLevel?: LogLevel;delayRenderTimeoutInMilliseconds?: number;- dumpBrowserLogs?: boolean;};/**@@ -60,7 +59,6 @@ export type RenderStillOnCloudrunInput = {* @param params.forceHeight Overrides default composition height.* @param params.logLevel Level of logging that Cloud Run service should perform. Default "info".* @param params.delayRenderTimeoutInMilliseconds A number describing how long the render may take to resolve all delayRender() calls before it times out.- * @param params.dumpBrowserLogs If set to true, all `console` statements from the headless browser will be forwarded to the Cloud Logging in GCP.* @returns {Promise<RenderStillOnCloudrunOutput>} See documentation for detailed structure*/@@ -84,7 +82,6 @@ export const renderStillOnCloudrun = async ({forceHeight,logLevel,delayRenderTimeoutInMilliseconds,- dumpBrowserLogs,}: RenderStillOnCloudrunInput): Promise<RenderStillOnCloudrunOutput> => {validateServeUrl(serveUrl);if (privacy) validatePrivacy(privacy);@@ -117,7 +114,6 @@ export const renderStillOnCloudrun = async ({logLevel: logLevel ?? 'info',delayRenderTimeoutInMilliseconds:delayRenderTimeoutInMilliseconds ?? RenderInternals.DEFAULT_TIMEOUT,- dumpBrowserLogs: dumpBrowserLogs ?? false,};const client = await getAuthClientForUrl(cloudRunEndpoint);diff --git a/packages/cloudrun/src/cli/commands/render/index.ts b/packages/cloudrun/src/cli/commands/render/index.tsindex adac8063d4..4b734f4762 100644--- a/packages/cloudrun/src/cli/commands/render/index.ts+++ b/packages/cloudrun/src/cli/commands/render/index.ts@@ -63,7 +63,6 @@ export const renderCommand = async (args: string[], remotionRoot: string) => {remotionRoot,});- const verbose = RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose');let composition: string = args[1];if (!composition) {@@ -76,7 +75,7 @@ export const renderCommand = async (args: string[], remotionRoot: string) => {indent: false,port,remotionRoot,- verbose,+ logLevel,webpackConfigOrServeUrl: serveUrl,});@@ -94,7 +93,7 @@ export const renderCommand = async (args: string[], remotionRoot: string) => {puppeteerInstance: undefined,serveUrlOrWebpackUrl: serveUrl,timeoutInMilliseconds: puppeteerTimeout,- verbose: RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose'),+ logLevel,width,server: await server,});@@ -186,7 +185,6 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}// config file, just when explicitly setconcurrency: CliInternals.parsedCli.concurrency ?? null,delayRenderTimeoutInMilliseconds: puppeteerTimeout,- dumpBrowserLogs: verbose,enforceAudioTrack,preferLossless: false,});diff --git a/packages/cloudrun/src/cli/commands/still.ts b/packages/cloudrun/src/cli/commands/still.tsindex a78e1818ff..17454b66d5 100644--- a/packages/cloudrun/src/cli/commands/still.ts+++ b/packages/cloudrun/src/cli/commands/still.ts@@ -39,8 +39,6 @@ export const stillCommand = async (args: string[], remotionRoot: string) => {remotionRoot,});- const verbose = RenderInternals.isEqualOrBelowLogLevel(logLevel, 'verbose');-let composition = args[1];if (!composition) {Log.info('No compositions passed. Fetching compositions...');@@ -51,7 +49,7 @@ export const stillCommand = async (args: string[], remotionRoot: string) => {indent: false,port,remotionRoot,- verbose,+ logLevel,webpackConfigOrServeUrl: serveUrl,});@@ -61,7 +59,7 @@ export const stillCommand = async (args: string[], remotionRoot: string) => {compositionIdFromUi: null,indent: false,serveUrlOrWebpackUrl: serveUrl,- verbose,+ logLevel,browserExecutable,chromiumOptions,envVariables,@@ -145,7 +143,6 @@ ${downloadName ? ` Downloaded File = ${downloadName}` : ''}outName,logLevel: ConfigInternals.Logging.getLogLevel(),delayRenderTimeoutInMilliseconds: puppeteerTimeout,- dumpBrowserLogs: verbose,});doneIn = Date.now() - renderStart;updateProgress(true);diff --git a/packages/cloudrun/src/functions/helpers/payloads.ts b/packages/cloudrun/src/functions/helpers/payloads.tsindex 501faddedc..2f72f66b23 100644--- a/packages/cloudrun/src/functions/helpers/payloads.ts+++ b/packages/cloudrun/src/functions/helpers/payloads.ts@@ -46,7 +46,6 @@ export const CloudRunPayload = z.discriminatedUnion('type', [privacy: z.enum(['public', 'private']).optional(),logLevel,delayRenderTimeoutInMilliseconds: z.number(),- dumpBrowserLogs: z.boolean(),concurrency: z.number().or(z.string()).nullable(),enforceAudioTrack: z.boolean(),preferLossless: z.boolean(),@@ -69,7 +68,6 @@ export const CloudRunPayload = z.discriminatedUnion('type', [frame: z.number(),delayRenderTimeoutInMilliseconds: z.number(),logLevel,- dumpBrowserLogs: z.boolean(),}),]);diff --git a/packages/cloudrun/src/functions/render-media-single-thread.ts b/packages/cloudrun/src/functions/render-media-single-thread.tsindex 3e737609b9..0dafbfdfea 100644--- a/packages/cloudrun/src/functions/render-media-single-thread.ts+++ b/packages/cloudrun/src/functions/render-media-single-thread.ts@@ -66,13 +66,12 @@ export const renderMediaSingleThread = async (envVariables: body.envVariables,chromiumOptions: actualChromiumOptions,muted: body.muted,- verbose: RenderInternals.isEqualOrBelowLogLevel(body.logLevel, 'verbose'),+ logLevel: body.logLevel,browserExecutable: null,timeoutInMilliseconds: body.delayRenderTimeoutInMilliseconds,cancelSignal: undefined,concurrency: body.concurrency,disallowParallelEncoding: false,- dumpBrowserLogs: body.dumpBrowserLogs,enforceAudioTrack: body.enforceAudioTrack,ffmpegOverride: undefined,indent: false,diff --git a/packages/cloudrun/src/functions/render-still-single-thread.ts b/packages/cloudrun/src/functions/render-still-single-thread.tsindex 5882b8ac38..2408c35ed1 100644--- a/packages/cloudrun/src/functions/render-still-single-thread.ts+++ b/packages/cloudrun/src/functions/render-still-single-thread.ts@@ -51,10 +51,9 @@ export const renderStillSingleThread = async (envVariables: body.envVariables,chromiumOptions: actualChromiumOptions,frame: body.frame,- verbose: RenderInternals.isEqualOrBelowLogLevel(body.logLevel, 'verbose'),+ logLevel: body.logLevel,browserExecutable: null,cancelSignal: null,- dumpBrowserLogs: body.dumpBrowserLogs,indent: false,timeoutInMilliseconds: body.delayRenderTimeoutInMilliseconds,onBrowserLog: null,diff --git a/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar b/packages/cloudrun/src/gcpInstaller/gcpInstaller.tarindex efeec54df4..da7aaaddb7 100644Binary files a/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar and b/packages/cloudrun/src/gcpInstaller/gcpInstaller.tar differdiff --git a/packages/docs/docs/cloudrun/rendermediaoncloudrun.md b/packages/docs/docs/cloudrun/rendermediaoncloudrun.mdindex 0b454b10e6..2a028293c3 100644--- a/packages/docs/docs/cloudrun/rendermediaoncloudrun.md+++ b/packages/docs/docs/cloudrun/rendermediaoncloudrun.md@@ -235,10 +235,6 @@ _optional_One of `verbose`, `info`, `warn`, `error`. Determines how much is being logged inside the Lambda function. Defaults to `info`.-### `dumpBrowserLogs?`--If set to true, all `console` statements from the headless browser will be forwarded to the Cloud Logging in GCP.-### `outName?`_optional_diff --git a/packages/docs/docs/cloudrun/renderstilloncloudrun.md b/packages/docs/docs/cloudrun/renderstilloncloudrun.mdindex e54f6f9b16..6d49dd903c 100644--- a/packages/docs/docs/cloudrun/renderstilloncloudrun.md+++ b/packages/docs/docs/cloudrun/renderstilloncloudrun.md@@ -159,10 +159,6 @@ _optional_One of `verbose`, `info`, `warn`, `error`. Determines how much is being logged inside the Lambda function. Defaults to `info`.-### `dumpBrowserLogs?`--If set to true, all `console` statements from the headless browser will be forwarded to the Cloud Logging in GCP.-### `outName?`_optional_