🎥 Make videos programmatically with React
use logger
Jonny Burger6022f4a5d5a7
diff --git a/packages/lambda/src/functions/helpers/print-cloudwatch-helper.ts b/packages/lambda/src/functions/helpers/print-cloudwatch-helper.tsindex b68df250bc..f9df0b22fc 100644--- a/packages/lambda/src/functions/helpers/print-cloudwatch-helper.ts+++ b/packages/lambda/src/functions/helpers/print-cloudwatch-helper.ts@@ -1,3 +1,4 @@+import {RenderInternals} from '@remotion/renderer';import type {LambdaRoutines} from '../../defaults';export const printCloudwatchHelper = (@@ -8,5 +9,5 @@ export const printCloudwatchHelper = (return [...a, `${b}=${data[b]}`];}, [] as string[]);const msg = [`method=${type}`, ...d].join(',');- console.log(msg);+ RenderInternals.Log.info(msg);};diff --git a/packages/lambda/src/shared/serialize-props.ts b/packages/lambda/src/shared/serialize-props.tsindex 4761757987..079d1067e1 100644--- a/packages/lambda/src/shared/serialize-props.ts+++ b/packages/lambda/src/shared/serialize-props.ts@@ -1,3 +1,4 @@+import { RenderInternals } from '@remotion/renderer';import {getOrCreateBucket} from '../api/get-or-create-bucket';import type {AwsRegion} from '../client';import {lambdaReadFile, lambdaWriteFile} from '../functions/helpers/io';@@ -25,9 +26,10 @@ export const serializeInputProps = async ({const hash = randomHash();const MAX_INLINE_PAYLOAD_SIZE = type === 'still' ? 5000000 : 200000;-++ // TODO: It should take the COMBINED size of default props and resolved propsif (payload.length > MAX_INLINE_PAYLOAD_SIZE) {- console.warn(+ RenderInternals.Log.warn(`Warning: inputProps are over ${Math.round(MAX_INLINE_PAYLOAD_SIZE / 1000)}KB (${Math.ceil(